Reputation: 5404
I want to be notified when the user cleared the noficiation bar (clicked on "clear" button).
i mean to that button:
Is there a way to do that? by broadcast or something?
thanks in advance
Upvotes: 4
Views: 830
Reputation: 1006724
For your own notifications, use deleteIntent
to specify a PendingIntent
to be executed when the user clears your notification.
However, you cannot find out whether that button has been pressed in general, for other notifications than your own.
Upvotes: 4