Thursday, August 29, 2013

How to get the package name and intent of installed apps

PackageManager pm = getPackageManager();
List<ApplicationInfo>packages = m.getInstalledApplications(PackageManager.GET_META_DATA);
for (ApplicationInfo packageInfo : packages) {
Log.d(TAG, "Installed package :" + packageInfo.packageName);
Log.d(TAG, "Launch Activity :" + pm.getLaunchIntentForPackage(packageInfo.packageName));

How to launch another app from your app.

No comments:

Post a Comment

You can leave any question here and I will make a response to you ASAP. :D