After Home button press re-launching app shows initial activity not current

后端 未结 6 1438
不知归路
不知归路 2021-01-04 04:12

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

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-04 04:40

    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.

提交回复
热议问题