views:

445

answers:

1

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!

A: 

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.

Prashast