I need to check if an installed app has a specific launcher activity class (based on the package name of the app).
I can get the list of activities and find the correct class with this:
PackageInfo info = context.getPackageManager().getPackageInfo(packageName, PackageManager.GET_ACTIVITIES);
for (ActivityInfo a : info.activities) {
if (a.name.compareTo("specific class name") == 0)
// if a is launcher activity
return true;
}
But I can't seem to find any way to check if the activity is actually the launcher.
Is there any way to get the information about the intent filters associated with the activity from the manifest file?