How to Get List of Installed Apps in Android
Peeyush Singhal
Senior Technical Lead at Mphasis Silverline | 7X Mulesoft Certified | 2X Salesforce Certified | Jitterbit Certified
How to Get List of Installed Apps in Android
Android PackageManager class is used to retrieve information on the application packages that are currently installed on the device. You can get an instance of PackageManager class by calling getPackageManager(). PackageManager provides methods for querying and manipulating installed packages and related permissions, etc. In this Android example, we we get list of installed apps in Android.
PackageManager packageManager = getPackageManager();
List<ApplicationInfo> list = packageManager.getInstalledApplications(PackageManager.GET_META_DATA)
packageManager.getInstalledApplications() return a List of all application packages that are installed on the device. If we set the flag GET_UNINSTALLED_PACKAGES has been set, a list of all applications including those deleted with DONT_DELETE_DATA (partially installed apps with data directory) will be returned. Read more...
For more info visit:- w2class.com