This sometimes causes issues on my app, I am not sure how serious it is, but it disrupts the flow of the app.
When I open Activity2 over ActivityMain, and am doing some editing. Then a task completes in the notification bar, and I click on the notification which take me back to ActivityMain.
However, this disrupts the stack as it takes out ActivityMain from 'under' Activity2 and places it on top. So when I press back, I get to Activity2, and if I press back again I exit the app. This is weird since Activity2 is supposed to be a dialog for ActivityMain.
Is setting launchMode going to help in this case?