I want to add a button to my notification to close it, since it’s persistent. I have 2 button. One of them I use addAction, because I call another activity. But the other just need to close the notification. The only way I found is to create a new Activity with the action to close the notification, so I could do the close button the same thing I did with the other button.
But is there a way to do this withou creating a new activity?
I don’t know if it’s clear enough, if you can’t understand please tell me and I try to explain better. Thanks.
You should just be able to use the notification manager