3

I have a program where i do specific things when Notifications are displayed and dismissed. These notifications are NOT from this application but others.

To capture notifications i am using an AccessibilityService, with this i am able to see when a notification is displayed but not dismissed. I am also able to get a reference to the Notification and as such its PendingIntent for when it is dismissed.

My question, is there any way to determine when a notification(that i did not create) is dismissed, or when a PendingIntent goes off?

4

1 回答 1

0

Not really... You can't tell whether one of your own Notifications has been dismissed, or is still displayed, I don't know of a way to tell if someone else's notification is still there.

于 2012-11-19T17:15:50.020 回答