Android: bug in launchMode=”singleTask”? -> activity stack not preserved
This is not a bug. When an existing singleTask activity is launched, all other activities above it in the stack will be destroyed. When you press HOME and launch the activity again, ActivityManger calls an intent {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]flag=FLAG_ACTIVITY_NEW_TASK|FLAG_ACTIVITY_RESET_IF_NEEDED cmp=A} So the result is A > B > HOME > A. It’s different when A’s launchMode … Read more