In my app that creates an notification icon, the click on this icon launches the main activity.
If user exits from the app thru home button and then click the notification icon then the app has 2 instances of activity and if he clicks the back button it closes the visible instance and loads the second instance of same activity. The effect is not good for the app.
I solved the problem partially by setting the Main activity as singleTask.
From my point of view the best solution would be if at the click of the notification icon the system loads the existing instance of the application without creating the new instance.
Thanks for your help!