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:
List<Activity> aList = packManager.getActivitiesForPackage("package.name");
thanks in advance!
The manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play.
An activity provides the window in which the app draws its UI. This window typically fills the screen, but may be smaller than the screen and float on top of other windows. Generally, one activity implements one screen in an app.
public ActivityInfo[] getActivityList() throws NameNotFoundException {
PackageManager pm = this.getPackageManager();
PackageInfo info = pm.getPackageInfo(getApplicationContext.getPackageName(), PackageManager.GET_ACTIVITIES);
ActivityInfo[] list = info.activities;
return list;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With