views:

440

answers:

1

Hi,

I put a notification in the status bar with a PendingIntent (with Extras info) that points to my main app (main activity). When the user clicks the staus bar, the PendingIntent is fired and my app launches and I can read the Extras info in my onCreate() method. So far so good.

But if my app is already running, the PendingIntent simply causes the app to come to the foreground and it does not call any of my methods, so I can't read the content in Extras. What can I do?

Thanks!

A: 

It does call a method.

Check out OnNewIntent

Prashast
That worked like a charm. Thank you!