What about
android:launchMode="singleTask"
or
android:launchMode="singleInstance"
in your manifest? I think singleTask is the one you want, but I still do not have a crystal clear understanding of what you are doing.
"The system creates activity at the root of the new task and redirects it to it. However, if an action instance already exists, the system redirects the intention to the existing instance by calling it onNewIntent () rather than creating a new one." singleTask
@Override void onPause() { super.onPause(); finish(); }
dev docs: Acitvity , Finish Life Cycle
dylan murphy
source share