Intent.FLAG_ACTIVITY_CLEAR_TOP doesn't deletes the activity stack

后端 未结 10 887
遇见更好的自我
遇见更好的自我 2020-12-17 09:20

I am developing the application in which i want to close whole application on button click. I know in android we should not think about to close the application because andr

10条回答
  •  执笔经年
    2020-12-17 10:04

    Also you can use finishAffinity() function in last activity like:

    finishAffinity()
    startHomeActivity()
    

    Hope it'll be useful.

提交回复
热议问题