剪贴板/ clipdata"/>
剪切板 android 图片,Android将图像复制到剪贴板/ clipdata
不要使用MediaStore数据库值.将图像保存到您有权使用它的SD卡.如何获得权限(mainifest):
package="com.example.html2pdf"
android:versionCode="1"
android:versionName="1.0" >
android:minSdkVersion="16"
android:targetSdkVersion="19" />
android:name=".CopyToClipboardImageActivity"
android:label="@string/app_name" >
some code:
final File sdcard = Environment.getExternalStorageDirectory();
String absoluteFilePath = sdcard.getAbsolutePath() + "/tmp.jpg";
File aFile = saveBitmap(bitmap , sdcard.getAbsolutePath(), "tmp", Bitmap.CompressFormat.JPEG);
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("image/*");
Uri uri = Uri.fromFile(new File(absoluteFilePath));
更多推荐
剪切板 android 图片,Android将图像复制到剪贴板/ clipdata
发布评论