How to finish current activity in Android

前端 未结 8 1423
长发绾君心
长发绾君心 2020-11-28 03:19

I have an Android application. I am making a loading screen with a progress bar.

I entered a delay in the onCreate method. When the timer finishes, I want to finis

8条回答
  •  一向
    一向 (楼主)
    2020-11-28 03:39

    You can also use: finishAffinity()

    Finish this activity as well as all activities immediately below it in the current task that have the same affinity.

提交回复
热议问题