I'm creating an app for posting pictures to a particular proprietary social
site. I have it working with the camera and the IMAGE_CAPTURE intent. I want
to add the ability to do this from pictures in the Gallery. I seem to have
everything wired up, but I'm scratching my head how to get the image from
the intent when my activity is lauched from the Gallery's share menu. In
onCreate, the code getIntent().getDataType() returns "image/jpeg", as
expected, but how to I get the picture from the Gallery into my ImageView?

The code at
http://stackoverflow.com/questions/2206397/android-intent-action-send-with-extra-stream-doesnt-attach-any-image-when-choos
suggests
how the Gallery app is adding the picture by means of

emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(png));

but on my end, it's not clear to me at all how to get that Uri from the
intent.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to