0

Is it possible for applications to retrieve information from one of their previously posted notifications? If so, how?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Shathur
  • 1,425
  • 1
  • 15
  • 19

1 Answers1

2

The API does not offer any functionality to retrieve information from a notification. You cannot, for instance, get a list of all notifications your application has created, you would have to create and manage such a list yourself.

See this post: Check if my application's notification is running

That post also provides a link to this post: How to know when my notification is cleared via Clear button? Which may be of some interest if you would like to be notified when the user does a "Clear" on all notifications.

You created them, you should know how many are showing and what they are displaying and when they are being displayed. I don't mean to sound derogatory, this is just what the API is assuming in this case.

Community
  • 1
  • 1
Matt M
  • 814
  • 11
  • 23
  • actually you can, but that requires being an AccessibilityService and being selected as a active accessibility service. – njzk2 Feb 27 '12 at 16:39