How do I know what extras an Intent contains when it returns from an
activity result?
For example, I have used an Intent.ACTION_GET_CONTENT to pick an image
from the gallery. When the result is returned, I can get the URI of
the image from intent.getData().toString(). In another scenario, I use
a MediaStore.ACTION_IMAGE_CAPTURE to get a new photo. When this result
returns, I know (from looking at other people's code) that you can get
the image itself from data.getExtras().get("data");
But how can I get the contentUri of this new photo?
A more relevant question, is how can I inspect the Intent so that I
know what extras and what data it contains? There seems to be a
differing combination depending on what the original Intent was.
Many thanks for any suggestions.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---