I have Activity A
with android:launchMode="singleTop"
in the manifest.
If I go to Activity B
, C
and D
there I have menu shortcuts to return to my applications root activity (A
).
The code looks like this:
Intent myIntent = new Intent(getBaseContext(), MainActivity.class);
startActivity(myIntent);
However, instead of returning to the already existing instance A
of my MainActivity.class
it creates a new instance -> it goes to onCreate()
instead of onNewIntent()
.
This is not the expected behavior, right?