Getting Installed Applications Programmatically
I am trying to get the installed application in Android after clicking a icon. Under the icon click code I wrote following code: Intent intent = new Intent(Intent.ACTION_MAIN); int
Solution 1:
To get list of all installed application you can use the following code
Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
List pkgAppsList = getPackageManager().queryIntentActivities( mainIntent, 0);
Post a Comment for "Getting Installed Applications Programmatically"