Skip to content Skip to sidebar Skip to footer

List Out Installed/running Applications In Android Programmatically

Possible Duplicate: How to get a list of installed android applications and pick one to run We have using a android mobile. How to list out All Installed Applications. How to l

Solution 1:

To get the list of activities/applications installed on Android:

finalIntentmainIntent=newIntent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
finalListpkgAppsList= context.getPackageManager().queryIntentActivities( mainIntent, 0);

Referred from: How to get a list of installed android applications and pick one to run

To check all running applications

ActivityManageractvityManager= (ActivityManager)
this.getSystemService( ACTIVITY_SERVICE );
List<RunningAppProcessInfo> procInfos = actvityManager.getRunningAppProcesses();

Referred From: http://www.dreamincode.net/forums/topic/138412-android-20-list-of-running-applications/

Note: Above described function will return correct result for below API 21, for 21 and above it's deprecated.

Post a Comment for "List Out Installed/running Applications In Android Programmatically"