I have my launcher activity flag set to singleTop.
when I launch activity from notification bar (with FLAG_ACTIVITY_NEW_TASK in receiver), new activity is created and the previous one is not used.
What can be done to have only one activity in stack?
Edit:
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);`
in receiver, seem to be working
I had to use
“Intent.FLAG_ACTIVITY_CLEAR_TOP |Intent.FLAG_ACTIVITY_NEW_TASK” makes launched activity behaves differently. Whenever I launch activity form history It always calls onNewIntent