How to get notified when a notification is notified

Kishore picture Kishore · Jul 11, 2012 · Viewed 18k times · Source

I want to read/access/log the notifications fired on notification bar by other applications.

I searched Intents and PendingIntents a lot, but couldn't get a solution.

Does my application need to be notified when any notification is fired?

Or Does android system provide something to read notifications by the user-level applications?

Answer

OriolJ picture OriolJ · Aug 11, 2013

Starting with api 18 (android 4.3) it's possible: http://developer.android.com/reference/android/service/notification/NotificationListenerService.html

Very easy to use, but the user have to give permission to the app manually.