My app deals with tons of pictures that are on an arbitrary location
of the device (typically somewhere on /sdcard, presumed private to the
app). The gallery has a context menu that calls addIntentOptions on
them so you can send them via MMS, use them as contact pictures, etc.

How do I need to set the intent up for that? I set the type to image/
jpeg, because that seems to be the one everybody is looking for.

I put the Bitmap into an extra stream named "data", that seemed to
satisfy the "Crop Picture" intent, but no-one else.

I used Uri.fromFile() onto the File of the image itself, that seemed
to work with the "View Picture" intent, but not the others.

I tried MediaStore.Images.Media.getContentUri(), but that didn't do
it.

I tried using my own content provider that always returned a "_data"
column on every query with a pointer to the file, but that didn't work
either, presumably because it didn't like me setting the MIME type to
image/jpeg.

What's the proper way here?

(And, while I'm on the soap box, I hate the decision to not use
addIntentOptions on any of the core apps. Several times, I have wanted
to use an image in the web browser as a contact icon.)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to