1. Check out our app, Forums for Android! Download and leave feedback here!

How can I get a list of all installed apps?

Discussion in 'Application Development' started by jpsnow, Jul 25, 2010.

  1. jpsnow

    jpsnow New Member
    Thread Starter
    5

    Jul 25, 2010
    2
    0
    5
    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
     

    Advertisement

  2. markb

    markb Well-Known Member
    63

    Sep 14, 2009
    148
    26
    63
    Software Developer (Java, C, Web, Unix)
    Birmingham, UK
    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
     
  3. jpsnow

    jpsnow New Member
    Thread Starter
    5

    Jul 25, 2010
    2
    0
    5
    Thanks a lot that was very helpful!
     

Share This Page

Loading...