Try this...
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.setType("video/*");
activity.startActivityForResult(i,2);
On Jun 12, 11:54 am, glory <[email protected]> wrote:
> Hi all,
>
> I am trying to launch the default videogalleryfrom my application.
> I am using following intent for opening the videogallery
>
> Intent i = new Intent(Intent.ACTION_PICK);
> i.setDataAndType(Uri.EMPTY, "video/3gp");
> this.startActivityForResult(i, REQUEST_SELECT_VIDEO);
>
> but the problem is that it is showing both video and picture.
>
> How can I filter out only video
>
> Thanks in advance.
>
> Regards,
> Glory
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---