1

Share an image in android

view story
linux-howto

http://stackoverflow.com – I use the following code for sharing an image in Android : Intent intent = new Intent(Intent.ACTION_SEND); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); intent.setType("image/jpeg"); Uri imageUri = Uri.parse("android.resource://com.mypackage.com/drawable/image_1"); intent.putExtra(Intent.EXTRA_STREAM, imageUri); startActivity(Intent.createChooser(intent, "Share this image via")); It will show a list of applications to share the image with. For example, if I choose ((S Memo)) application, it will receive the image and there is no problem. But if I choose Bluetooth, it will show (( (HowTos)