I have an application that has an initial activity (A - also the one specified in the launcher) from which it allows the user to launch another activity (B). I am saving the
This answer is for someone coming from search engine due to similar kind of issue.
I had,
Launcher Activity -> A
Main Activity -> B
Always starts A after pressing HOME
button or Switching from task list when application was in B.
Finally found that the problem was in manifest, removed
android:noHistory = "true"
from Activity declaration of B in manifest and it was resolved.