I am trying to get a list of receivers that handle android.intent.action.BOOT_COMPLETED for other applications.
I can get only the apps with that action
I reformatted for people. Use this and thanks for question.
PackageManager packageManager = getPackageManager();
List startupApps = new ArrayList();
Intent intent = new Intent(Intent.ACTION_BOOT_COMPLETED);
List activities = packageManager.queryBroadcastReceivers(intent, 0);
for (ResolveInfo resolveInfo : activities) {
ActivityInfo activityInfo = resolveInfo.activityInfo;
if (activityInfo != null) {
startupApps.add(activityInfo.name);
}
}