Video Gallery in android

by glory » Fri, 12 Jun 2009 14:54:52 GMT


Sponsored Links
 Hi all,

I am trying to launch the default video gallery from my application.
I am using following intent for opening the video gallery

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
--~--~---------~--~----~------------~-------~--~----~



Video Gallery in android

by efrancis » Fri, 10 Jul 2009 03:47:43 GMT


 Try this...

Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.setType("video/*");
activity.startActivityForResult(i,2);





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


Sponsored Links


Other Threads

1. help installing ADT eclipse Plugin

Hello,

I tried following the installation steps on 
http://developer.android.com/sdk/eclipse-adt.html
but i get the following errors when i reach the last step.

The error i get is the following:
Cannot complete the install because one or more required items could
not be found.
  Software being installed: Android Development Tools
0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group
0.9.5.v200911191123-20404)
  Missing requirement: Android Development Tools
0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group
0.9.5.v200911191123-20404) requires 'org.eclipse.wst.xml.ui 0.0.0' but
it could not be found

FYI, I tried all three different ways even downloading the archive and
installing it manually but unfortunately no luck. How do you fix this?

--

2. Load new OS on a Droid or Hero?

I have a stack of Droids and a few Heros.  There are some changes we'd
like to make at the OS level.  Is it possible to load a new OS on
these devices?  I see directions on the site for the G1, but didn't
see mention of using any other hardware.

-- 

3. Gagal Upgrade Rom dan Muncul Tulisan . . . . . Ada Yang Bisa bantu?

4. How does Category_Home intent work ?

5. samsung spica owner anyone?

6. test adr..

7. How to track memory changes for a single process on android?