Overview
- Notificationの通知、削除を知ることができる
- Added in API level 18(JBMR2)
- 使うときはSettings > Sound¬ification > Notification accessからアプリを有効にする必要あり(Mで確認。OSのバージョンによってこの設定までのパスが違うかも)
- 上記でEnableにすればSystemから勝手に呼ばれるので自分でServiceをStartする必要なし。
Reference
- NotificationListenerService
http://developer.android.com/reference/android/service/notification/NotificationListenerService.html - StatusBarNotification
http://developer.android.com/reference/android/service/notification/StatusBarNotification.html - Notification
http://developer.android.com/reference/android/app/Notification.html - ticker text null in NotificationListenerService
http://stackoverflow.com/questions/21934979/ticker-text-null-in-notificationlistenerservice - Android 4.3: NotificationListenerServiceマニアックスとAndroidセキュリティ観測 - ブライテクノBlog
http://brightechno.com/blog/archives/125