Yes, this is inconsistent, but there is a way to do what you want with
audio. Take a look at
http://developer.android.com/reference/android/provider/MediaStore.Audio.Media.html#RECORD_SOUND_ACTION

Cheers,
Justin
Android Team @ Google

On Aug 12, 7:32 am, Christine <christine.kar...@gmail.com> wrote:
> In my app, a user picks video content with
>    Intent i = new Intent(Intent.ACTION_GET_CONTENT);
>    i.setType("video/*");
>    startActivityForResult(i, MEDIA_SELECTED);
>
> and they start recording video with
>    Intent i = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
>    startActivityForResult(i, MEDIA_SELECTED);
>
> Now, I want to do the same for audio, but I can't:
>    Intent i = new Intent(Intent.ACTION_GET_CONTENT);
>    i.setType("audio/*");
>    startActivityForResult(i, MEDIA_SELECTED);
> doesn't start audio selection, but it triggers a chooser with which a
> user can select audio capture or selection. There's no
> ACTION_AUDIO_CAPTURE intent.
>
> Why is the behavior for video and audio different?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to