I know, that I get the same result with both code snippets
finish();
startActivity(newActivity);
and
startActivity(newActiv
I had the similar issue:
Activity A: singleInstance
Activity B: singleInstance
Activity C: singleInstance
A starts B
B starts C
C wants to start A:
here if I use:
finish();
startActivity(A);
something wired happens: Activity B comes to foreground instead of A! but if I change the code like this:
startActivity(A);
finish();
everything seems ok and Activity A comes visible.
I don't know what's the problem, but it seems that in the first case, C is finished before executing the startActivity command so that the back stack handles the situation and shows its top activity which is B! but in the second case, everything happens normally.