How to find which apps are allowed under “Priority app notifications” within Do Not Disturb setting?
问题 I am trying to programmatically find out for which apps the Do Not Disturb setting is bypassed exceptionally. So far, I am using the following code to check whether the phone is set in Do not Disturb mode or not : public static boolean isDnDModeEnabled(Context context) { if(Build.VERSION.SDK_INT <23) return false; try { NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); int filterValue = notificationManager