How to display an Image received from an "android.intent.action.SEND"
in an imageview
?
The user selects my app from the list of apps to share an image. The image is sent via intent
and my activity opens up but how to use this image in an imageview?
using
Bitmap thumbnail = (Bitmap) getIntent().getExtras().get("data");
does not help and
getIntent().getType() returns image/jpg
You are receving Image in Intent, So you have to update your Manifest as:
Then Activity needs:
Bitmap
implementsParcelable
interface. So to pass it useand to retrieve it use:
and use ImageView.setImageBitmap().
EDIT: see Receiving Content from Other Apps
Try this
Hope it helps