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

前端 未结 8 1280
余生分开走
余生分开走 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:59

    Have you tried starting a thread in onBackPressed and sleep for a specific time after which it calls finish(),or else stop the thread (from calling finish), and gain back the same activity.

    0 讨论(0)
  • 2020-12-31 22:02

    App is being killed and activity is being killed are two different things. To test that your activity is killed (without kill the app) activate devloper mode and set kill activity when leave.

    0 讨论(0)
提交回复
热议问题