Is it possible to suppress notifications in Android? -



Is it possible to suppress notifications in Android? -

i'd able hear notifications beingness sent status bar, , intercept , suppress (temporarily) notifications.

i've seen accessabilityevent.type_notification_state_changed, , notificationlistenerservice.

however, don't want informed when notification displayed, want prevent notification beingness displayed.

i can see how potentially security threat, can understand if it's not possible. possible? if so, how go doing it?

i think you're on right track notificationlistenerservice. google has made these api's available android 4.3 on, application using method available new devices.

in next blogpost can find illustration of can notificationlistenerservice: http://weimenglee.blogspot.ch/2014/03/android-tip-notification-listener.html

the basic thought implement onnotificationposted() method, gives statusbarnotification instance. should able cancel notification this.cancelnotification( notif.getpackagename(), notif.gettag(), notif.getid());

see blogpost farther description of extend , how implement methods.

hope helps.

android notifications

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -