You can get a list of installed applications using PacketManager . Code from here :
public class AppList extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); PackageManager pm = this.getPackageManager(); Intent intent = new Intent(Intent.ACTION_MAIN, null); intent.addCategory(Intent.CATEGORY_LAUNCHER); List list = pm.queryIntentActivities(intent, PackageManager.PERMISSION_GRANTED); for (ResolveInfo rInfo : list) { Log.w("Installed Applications", rInfo.activityInfo.applicationInfo .loadLabel(pm).toString()); } }
To see current applications, you can use ActivityManager .
keyboardP
source share