• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android 4.3+ NotificationListenerService

jdorfsman

Lurker
Dec 25, 2013
2
0
Hi! Recently I came across the new class NotificationListenerService.
I'm trying to make an app that reads the notifications as posted and silence them (according to some parameters).
I am able to read them, and categorize them but unable to silence them.
I have tried to silence the whole system when receiving a notification and un-silencing it some seconds after, but thats not good (it worked, but its not a good solution).
Is there a way to silence a specific notification?
I receive them in [HIGH]public void onNotificationPosted(StatusBarNotification sbn){}[/HIGH] as a StatusBarNotification.Thanks!
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones