How to start up the native google gallery app?

Put your problem here if it does not fit any of the other categories.

How to start up the native google gallery app?

Postby pcm2a » Thu Nov 26, 2009 7:11 am

The api has a nice way to get a list of all installed applications:
Code: Select all
PackageManager appInfo = context.getPackageManager();
        List<ApplicationInfo> list = appInfo.getInstalledApplications(0);

The problem is that the Gallery is not in this list. So what is the correct way to launch the gallery?

I have tried running this intent:
Code: Select all
Intent intent = new Intent("android.intent.action.GET_CONTENT");

It doesn't start up the same Gallery as pressing your normal Gallery icon. Instead it starts up a list of all images and then when you pick one it just returns back to the program.

What I'm looking to do is start up the regular gallery app just like if someone pressed the Gallery icon on their home screen. Any ideas how to do that?
Posts: 27
Joined: Tue Aug 11, 2009 4:54 pm


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 7 guests