1. Are you ready for the Galaxy S20? Here is everything we know so far!

Android 4.3+ NotificationListenerService

Discussion in 'Android Apps & Games' started by jdorfsman, Dec 25, 2013.

  1. jdorfsman

    jdorfsman Lurker
    Thread Starter

    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!
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...