1

Basicly I want to do something after the user clear my notification from the top bar, How do I do that in andorid programmatically?

Basic example or complete code would be nice thanks.

Gujarat Santana
  • 9,854
  • 17
  • 53
  • 75

1 Answers1

3

When you create a Notification,setDeleteIntent ,Here is the api:

setDeleteIntent(PendingIntent intent)
Supply a PendingIntent to send when the notification is cleared explicitly by the user.
Gracker
  • 524
  • 3
  • 9
  • can't you stop your mp3 playing in PendingIntent? – Gracker Mar 19 '14 at 04:03
  • 1
    Hey Gracker You Have My Thanks, and found the way to stop it now. from this link http://stackoverflow.com/questions/13028122/how-to-use-delete-intent-to-perform-some-action-on-clear-notification – Gujarat Santana Mar 19 '14 at 04:09