Application not open main activity when it was killed after pressing home button in android

前端 未结 8 1345
余生分开走
余生分开走 2020-12-31 21:08

In my Application, activity A is launcher activity, from A it called B and from B it called C, I have such more than 5 activities. In C when I press home button, and again o

8条回答
  •  爱一瞬间的悲伤
    2020-12-31 21:47

    You will need to detect that Android has killed your process and then after that the user has returned to the app (causing Android to create a new process). I've described how to do this in numerous answers:

    https://stackoverflow.com/a/29802601/769265

    https://stackoverflow.com/a/27276077/769265

    https://stackoverflow.com/a/11249090/769265

提交回复
热议问题