My application has one write action called "Main". In βMainβ I call one of the three other actions A, B or C (based on preference), and then immediately exit / end βMainβ, so only A, B or C are active.
I also have a constant notification in the notification panel that users can pull out (at any time) in order to conveniently restart the application (calls with the Home component).
The problem is that if my application is already running and the users pull out the notification and restart, I get A or B or C working on top of the previous action (also A or B or C). How can I avoid this (i.e. reuse activity over stack)?
I tried Intent.FLAG_ACTIVITY_ * and nothing works. I tried launchModes
in the manifesto, and that didn't work either. Any ideas? Any help appreciated .... jh
source share