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. The SD card wild west

This may just me being a neat freak, so I'm hesitant to bring it up, but 
is anyone else bothered by every application just dumping it's data onto 
the SD card in some random folder?

I guess I'd just like to use the SD card for some personal, non-app data 
as well, but the mess on there is kind of turning me off.

I realize it may be too late to start setting up guidelines, but 
wouldn't it be much nicer if apps would use, say, a dot-prefixed package 
name as their root folder? Possible exceptions, such as the dcim folder, 
notwithstanding.

Michael

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

2. Any advantage of a CA-signed certificate

I couldn't find any documents describing the benefits of having a CA-
signed certificate that developers can use for signing their APKs.
Could anyone enlighten me if CA-signed certificate are any stronger
than self-signed? Are there any permissions, for example, that a self-
signed certificate is not enough for?

Another question is that if any developers can sign their apps freely
without any consequences (I mean there's no accountability on self-
signed certificates) what will really prevent malware from spreading?
Community rating? The $25 entry fee to Android Market? I'm still
missing something more convincing ...

Tote

3. How can we realize so COOL animation like this?Help!

4. SDK 1.5 - MMS Intent does not handle images correctly

5. How to run android from NAND memory for TI OMAP platform

6. Howto build Android full source for X86 Architecture like EeePC(ASUS)

7. Use external component of the phone list.