ACTION_GET_CONTENT audio, video

by Christine » Sun, 02 Aug 2009 23:18:53 GMT


Sponsored Links
 I was wondering, when you do an intent with ACTION_GET_CONTENT and
type "video/*" you get just the media browser showing you stored
video's from which you can pick one, while with type "audio/*", you
first get a chooser which lets you choose between recording audio or
selecting from the media library. For recording video you can use
MediaStore.ACTION_VIDEO_CAPTURE but I haven't found a
MediaStore.ACTION_AUDIO_CAPTURE.

In my app I'd like to have a consistent UI for video and audio,
preferably without the separate chooser step. I can do audio capture,
but how do I avoid the audio chooser without creating my own audio
gallery UI?
--~--~---------~--~----~------------~-------~--~----~



ACTION_GET_CONTENT audio, video

by Dianne Hackborn » Mon, 03 Aug 2009 15:21:08 GMT


 You -don't- want to avoid the chooser, that is what allows other
applications to supply their own functionality.  If you want to allow the
user to choose either a video or music, you may want to write your own
choose by doing your own intent query for both of those data types and
merging the result (you can use LauncherActivity to help with presenting the
list or do it yourself).






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


ACTION_GET_CONTENT audio, video

by Christine » Tue, 04 Aug 2009 17:25:45 GMT


 Maybe I should clarify. I use the ACTION_GET_CONTENT intent for both
picking audio files and video files. Apparently, the audio recorder
can handle this intent while the video recorder doesn't, which makes
my app inconsistent.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. GET_TASK permission for a Class used as a library fuction

No, sorry.










-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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.

--~--~---------~--~----~------------~-------~--~----~

2. How to implement the slide effect like desktop

I got most of the way there by sticking view trees in a gallery.

The only hitch was one of the gallery "panes" has 
a list in it -- and I don't know how to make the 
list scroll on touch up/down and the gallery 
scroll on touch left/right.

-- Ward







--~--~---------~--~----~------------~-------~--~----~

3. GET_TASK permission for a Class used as a library fuction

4. android on eee p701 doesn't boot

5. How to implement the slide effect like desktop

6. How to implement the slide effect like desktop

7. How much RAM does G1 have?