See Also: NotificationListenerService Members
A service that receives calls from the system when new notifications are posted or removed, or their ranking changed.
xml Example
<service android:name=".NotificationListener" android:label="@string/service_name" android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"> <intent-filter> <action android:name="android.service.notification.NotificationListenerService" /> </intent-filter> </service>
To extend this class, you must declare the service in your manifest file with the NoType:android/Manifest$permission;Href=../../../../reference/android/Manifest.permission.html#BIND_NOTIFICATION_LISTENER_SERVICE permission and include an intent filter with the NotificationListenerService.ServiceInterface action. For example: