문제

With the new NotificationListenerService introduced in 4.3, it's possible to query all currenty active notifications using NotificationListenerService.getActiveNotifications(). Is something similar possible with the AccessibilityService? I wouldn't mind keeping track of them myself (store them temporarily once a new notification comes in), but it seems that there's no "onRemoved"-event for the AccessibilityService, so it's impossible to keep track of which notifications are still active and which have already been dismissed?

도움이 되었습니까?

해결책

Apparently this isn't possible on pre-4.3. I've resorted to storing the notifications locally as they come in, but this isn't a very good approach since there's no way to tell when a notification was removed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top