문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top