Here is what I use to list all the applications installed. I am trying to
find a more efficient way.

PackageManager packageManager = getPackageManager();
            List<PackageInfo> packs =
packageManager.getInstalledPackages(0);
            size = packs.size();
for (int i = 0; i < size; i++)
            {
                PackageInfo p = packs.get(i);
                    appname =
p.applicationInfo.loadLabel(packageManager).toString();
                    pname = p.packageName;
                        }

-Chris

On Mon, May 24, 2010 at 2:32 PM, Mark Murphy <mmur...@commonsware.com>wrote:

> Scheidecker wrote:
> > I would like to know if I could access the internal device DB to fetch
> > a list of all installed applications, their version, etc?
>
> See the PackageManager class.
>
> > How can I read the settings on the device as well?
>
> See the Settings class.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _Beginning Android 2_ from Apress Now Available!
>
> --
> 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
>

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