I have a problem with Pending Intent in my app.
I have an activity, a notification with pending intent to launch that activity.
When my app is NOT displayed ( not foreground), I scroll the notification bar down and launch my app from my notification. It works fine.
But when my app is foreground, I want the activity is not launched again if user press on my notification because It has been displayed already.
I don't want my pending intent launch the activity in this case. How can I do or please give me some key word for searching?