notification-listener-service-example
notification-listener-service-example copied to clipboard
This example teaches you how to intercept Android notifications using a built-in service called NotificationListenerService
Results
2
notification-listener-service-example issues
Sort by
recently updated
recently updated
newest added
It's much easier to use this code instead: fun isNotificationServiceEnabled(context: Context): Boolean =NotificationManagerCompat.getEnabledListenerPackages(context).contains(context.packageName) Much better than this: https://github.com/Chagall/notification-listener-service-example/blob/master/app/src/main/java/com/github/chagall/notificationlistenerexample/MainActivity.java private boolean isNotificationServiceEnabled(){ String pkgName = getPackageName(); final String flat = Settings.Secure.getString(getContentResolver(),...