You can't do this. The gallery in most devices exists as part of the camera app, but may not. It is very important: if you rely on finding things by package name and trying to launch them, you will break in the future. Where things are and what their package names are, are entirely implementation details.
On Thu, Nov 26, 2009 at 11:37 AM, pcm2a <[email protected]> wrote: > The api has a nice way to get a list of all installed applications: > Code: > 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: > Intent intent = new Intent("android.intent.action.GET_CONTENT"); > intent.setType("image/*"); > > 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? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

