1

I mean if I want to get access to all notification coming in notification drawer. Just wondering how pushbullet and other wearable accessories does that ? Reading all your notifications and pushing them to web servers / particular devices.

4

1 回答 1

1

您可以使用 NotificationListenerService,它需要权限 BIND_NOTIFICATION_LISTENER_SERVICE。

这是链接 https://developer.android.com/reference/android/service/notification/NotificationListenerService.html

和示例代码供参考 https://github.com/pgajbhiye/NotificationsSample

于 2016-07-31T10:15:41.370 回答