Android: Programmatically get list of installed apps on an Android device

Getting details of all the installed apps on an Android device is incredibly simple – here’s a utility method which I hope will prove useful.
private List<ApplicationInfo> getListOfApps() {
        // http://developer.android.com/reference/android/content/pm/PackageManager.html
        // Class for retrieving various kinds of information related to the application
        // packages that are currently installed on the device.
        PackageManager packageManager = getPackageManager();
       
        // Get a list of the installed applications
        List<ApplicationInfo> listOfApps = packageManager.getInstalledApplications(PackageManager.GET_META_DATA);
       
        return listOfApps;   
    }

Comments

  1. Maybe you would be interested in the mSpy application. Its great monitoring soft

    ReplyDelete

Post a Comment

Popular posts from this blog

Integrating Google Analytics into existing Android app

Update eclipse Android Development Toolkit to version 23.0.0