Sorry, this currently isn't possible.
On Tue, Nov 24, 2009 at 1:58 PM, junker37 <[email protected]> wrote:
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
Dianne Hackborn
Android framework engineer
[email protected]
Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails. All such
questions should be posted on public forums, where I and others can see and
answer them.
--
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