I created an example project here:
https://github.com/amitishai/Android-notifications
Here is the scenario:
- Open app
- Press button
- Exit app
- Click on the notification that was created. When the app opens you will be in Activity "Bla".
- Press the OS BACK button.
- Long press the OS Home button in order to see the open apps.
- Click on the app.
You will see that you have entered Activity "Bla" again, and the text is the same.
If the activity was initially created with the intent, and then destroyed, how is the intent not null when restarting the activity?