Simple question LaunchMode for SingleInstance

42 Views Asked by At

I want to ask about android LaunchMode attribute in the AndroidManifest.xml.

Assume that we have A,B,C,D,E and F activity. D and F will be SingleInstance and others will be standart mode. And there is stack as Task1: A->B->C->E and Task2: D in my back-stack. So I want to open my activity F as SingleInstance. What will scenario be?

1

There are 1 best solutions below

1
Fahad-Android On

You have to set the launchMode of the Activity F inside AndroidManifest.xml as singleInstance.

Try something like:

 <activity
    android:name="ActivityF"
    android:launchMode="singleInstance"/>

Hope it works for you.