Can you provide sample code and a manifest demonstrating this problem? To reproduce it, I created a simple application with two applications in which both actions have launchMode = "singleTask" and where Activit1 starts Activity2. This works as expected (Activity1 is not immediately destroyed). I assume that you are doing something else either in your code or in your manifest, which causes the behavior that you are describing. Please send the code and manifest so that we can help with your problem.
source share