• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How can I get a list of all installed apps?

jpsnow

Lurker
I am working on developing an app that requires looking at all apps installed on the user's phone. Can someone let me know how this would be accomplished?

Thanks,

Justin
 
Hi

You could probably do worse than to look into the Android source code.
You can browse it online, starting here:

android.git.kernel.org Git

Although if you want to be able to search and check for cross-references you might want to download all the code, and look at in Eclipse.

Here's a link to the ManageApplications class in the Settings app.
It should be a good place to start as it has to list all the applications.
There's a method called getInstalledApps() that you might want to look at.

android.git.kernel.org Git - platform/packages/apps/Settings.git/blob - src/com/android/settings/ManageApplications.java

(It looks like you'll want to use the android.content.pm.PackageManager class)

Mark
 
Back
Top Bottom