I would like to know how I can create a chooser for the user to select
from either a video or a photo. I want them to be able to capture a
new video/photo or select from existing videos/photos.
With the following code, I get a chooser that allows for that, but
also allows audio creation/selection.
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("*/*");
startActivityForResult(Intent.createChooser(intent, getString
(R.string.mediaChooserTitle)), REQUEST_MEDIA);
If I set the type to "image/*" I can create/get a photo, and "video/*
I can get/create a video. How can I combine these types?
--
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