I'm setting a notification when my app goes to background.
I want to simulate the behaviour of pressing on it on the "Recent Apps" menu, when clicking on the notification.
- If the app went to background and still is "alive" go to the last activity
- If the app was killed in background start it again from scratch
Is there any flag to add to an intent to "go to the top activity" only knowing which is the app?