How to always start from a startup activity on Android?

后端 未结 9 1348
走了就别回头了
走了就别回头了 2020-12-09 10:52

There are three different cases:

1) A user launches an app, navigates in it, pressed home and click on the app icon again to launch our app again.

2) A user

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 11:50

    You can call this.finish() on the onPause() of your Activity, that way the activity will be closed in the three cases.

提交回复
热议问题