Cilenco
Cilenco

Reputation: 7179

Get a List of Apps which can create a notification

I think the question says it all: How can I get a list of apps which can create a notification. I can get a list of all apps with this code:

final PackageManager pm = getPackageManager();
List<ApplicationInfo> packages = pm.getInstalledApplications(PackageManager.GET_META_DATA);

but there are system apps and so on. How can I only get the apps which can create a notification?

Upvotes: 0

Views: 276

Answers (1)

Marcin Orlowski
Marcin Orlowski

Reputation: 75645

You can't. Notification is not exposed in Manifest, so you cannot see that without reverse engeneering.

Upvotes: 2

Related Questions