I am thinking to show in a custom list view all app that can send notification (ie Facebook, Twitter, Games, etc..). I am using PackageManager to get all app installed, and I am thinking to use intent "filter":
mContext = context;
Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
pm = mContext.getPackageManager();
List<ResolveInfo> appList = pm.queryIntentActivities(mainIntent, 0);
CATEGORY_LAUNCHER includes a lot of apps that will never send notifications (settings, camera, live wallpaper). How can I fix it? Is its category the right way? Or I have to check all instlled apps permission and select only apps with "notification permission"? If yes what is that permission?