1. Download our Official Android App: Forums for Android!

Android 4.3+ NotificationListenerService

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

  1. jdorfsman

    jdorfsman Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Dec 25, 2013

    Dec 25, 2013
    2
    0
    5
    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!
     

    Advertisement

Share This Page

Loading...