Hello Stackoverflow,
I'm looking to find out how to stop an activity instead of resuming upon the click of the item on the notification list. Any ideas?
Thanks!
Hello Stackoverflow,
I'm looking to find out how to stop an activity instead of resuming upon the click of the item on the notification list. Any ideas?
Thanks!
Overload onNewIntent in your activity and when you get the intent from the pending intent just call finish()
Your activiy will need to be a singleInstance activity though. Otherwise, a new activity will get created on the task stack when the notification item is clicked.