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...
Similar Threads - Android NotificationListenerService
  1. Needleroozer
    Replies:
    1
    Views:
    61
  2. tdkehoe
    Replies:
    0
    Views:
    116
  3. DewLoop
    Replies:
    0
    Views:
    101
  4. Asger_P
    Replies:
    1
    Views:
    142
  5. zlloyd1
    Replies:
    0
    Views:
    119
  6. Richard Morey
    Replies:
    0
    Views:
    165
  7. Emma B
    Replies:
    0
    Views:
    192
  8. kimouu
    Replies:
    1
    Views:
    205
  9. medusa193
    Replies:
    10
    Views:
    274
  10. Steve BenAri
    Replies:
    7
    Views:
    375

Share This Page

Loading...