【发布时间】:2015-05-20 16:07:24
【问题描述】:
我编写了一个应用程序来读取到达 android 设备 (API>=19) 的通知并使用 NotificationListenerService 的 onNotificationPosted() 方法部分。只有当我在屏幕上保持应用程序处于活动状态时,我才能阅读发布的通知。无论如何我可以让应用程序在后台运行并且仍然使用 onNotificationsPosted 方法来检索通知。
谢谢!
【问题讨论】:
标签: android android-notifications android-notification-bar