It doesn't even work today, because different devices have the "gallery"
implemented in different places.  DO NOT USE PACKAGE NAMES.  The only
supported way to launch other applications is through the officially
published intent protocols, such as VIEW with an image to show an image.

On Thu, Nov 26, 2009 at 4:02 PM, pcm2a <reeeye...@gmail.com> wrote:

> Why would it break in the future?  The main function of my app relies
> on the user to be able to get a list of "install" applications.  Think
> of like an application like App Task Manager that shows you the
> installed apps and allows you to uninstall them.
>
> Running appInfo.getInstalledApplications(0) each time the user wants
> to do anything will grab you a fresh list of applications along with
> their start intents.  From that list you can safely run any of those
> apps and know that you are getting the latest item.  The only items
> that I have came aross that have to be started up differently are the
> Camera, the Dialer, and the Contacts list.
>
> Do you know of a better way to:
> 1. Start up the Gallery application that is present on all phones
> 2. Get a list of native and 3rd party applications, their icons, names
> and start intents without using the PackageManager?
>
> On Nov 26, 4:43 pm, Dianne Hackborn <hack...@android.com> wrote:
> > 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.
> >
> >
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to