How can I get a list of all installed apps?


Last Updated:

  1. jpsnow

    jpsnow New Member This Topic's Starter

    Joined:
    Jul 25, 2010
    Messages:
    2
    Likes Received:
    0
    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

    Joined:
    Sep 14, 2009
    Messages:
    148
    Likes Received:
    26
    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 This Topic's Starter

    Joined:
    Jul 25, 2010
    Messages:
    2
    Likes Received:
    0
    Thanks a lot that was very helpful!
     

Share This Page

Loading...