What is the best way to delete a notification number when a user clicks on a notification? I say the best way, but in fact I have not found ANY way. I start the inline activity when the user clicks on the notification, and not what I wrote, so I canβt figure it out. I have the notification manager flag set
NotificationManager notification . . . notification.flags |= Notification.FLAG_AUTO_CANCEL; notification.number++; nm.notify(1,notification);
But no matter what I do, the Notification.number number continues to grow and never resets to 0.
android notifications
Jonf
source share