Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android How can i intercept the Status Bar Notifications?

i would want to know if i can intercept a notification from Status Bar. The purpose of this is to somehow intercept an incoming a gmail and do something with it, i don't really need the content of the email, but it would be nicer. But since gmail had stopped the access to receiver and db, i am trying to find a workaround solution by listen the Status Bar if even this is possible. Any ideas ?

http://groups.google.com/a/googleproductforums.com/forum/#!category-topic/gmail/reading-and-receiving-messages/XD0C4sw9K7U

like image 912
djcharon Avatar asked Dec 09 '22 01:12

djcharon


1 Answers

You can use from API 18 NotificationListenerService to get notified about StatusBarNotifications.

like image 170
Ovidiu Latcu Avatar answered Jan 05 '23 05:01

Ovidiu Latcu