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. how to run sdk sample activities?

What is the URL to instructions on how to run the sample activities included 
in the Android 1.5 SDK?


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

2. Unable to remove default launching of an application.

For a quick example, download Astro File Manager, click on a image file, you
should see 2 actions:
* ASTRO Image Viewer
* View Picture (standard)
And a check box "Use by default for this action", I choosed "View Picture".
If you check it, a text explains (ok it does not "tell", don't play on
words...) : "Clear default in Home Settings > Applications > Manage
applications.
If you go there, then click on Astro: the Clear defaults button is disabled.
But I eventually realized that I misunderstood the feature, we have to clear
the default launching in the choosed application, not the triggering one,
e.g. Camera in my example...

But my second question remains unsolved: there is an interesting flag in the
Manifest:
android:allowClearUserDataWhether or not users are given the option to
remove user data "true" if they are, and "false" if not. If the value is "
true", as it is by default, the application manager includes an option that
allows users to clear the data.
It's enabled by default. Turning it to false (or explicitly to true) seems
to have no effect at all.
The application controls I have for any Market/Eclipse apps are:
* Uninstall
* Clear cache (what cache ? web cache ?)
* Clear defaults (ok now)
* Force stop

In the built-in applications I have also an extra "Clear data" button.
How to make this button appear for my app ? Is that "allowClearUserData" is
supposed to do ? In this case there is a bug or a {*filter*} limitation.

2009/5/23 Mark Murphy <mmur...@commonsware.com>


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

3. Putting the device to sleep?

4. Sending dbus messages using command line

5. Unable to remove default launching of an application.

6. SyncFailedException writing to sdcard

7. SampleSoftKeyboard