I think that it should be possible to get all the activities from \'third-party\' application, described in the manifest file. I can\'t figure out how.
for example:<
If you have the application context then use this:
private static void listAllActivities(Context context) {
PackageManager pManager = context.getPackageManager();
String packageName = context.getApplicationContext().getPackageName();
try {
ActivityInfo[] list = pManager.getPackageInfo(packageName, PackageManager.GET_ACTIVITIES).activities;
for (ActivityInfo activityInfo : list) {
Log.d(TAG, "ActivityInfo = " + activityInfo.name);
}
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
}