I would like to allow the user to pick either an image or a video
using the Gallery application launched with an ACTION_PICK or
ACTION_GET_CONTENT intent.

The Intent.setType(String) method allows me to set a MIME type for the
user to pick from.  I can either set the MIME type to "image/*" or
"video/*", but not both at the same time.  Just for the hell of it, I
tried various strings combining the two with the setType() method, but
nothing seems to work.
Constructing the intent with the action and a URI works as long as the
URI is pointing to either "content://media/external/images/media/" or
"content://media/external/videos/media/"  Again, I can't set up the
intent to direct Gallery to look in both locations.  Passing a URI
pointing to "content://media/external/" launches the Gallery but
displays no items.
I've also attempted to launch Gallery without a data URI or MIME type
set, but have been unsuccessful.

Is it possible to launch Gallery from an activity allowing the user to
pick either an image or a video and have the result returned to my
onActivityResult()?

-- 
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