Clear all activities in a task?

后端 未结 7 1566
有刺的猬
有刺的猬 2020-11-30 01:44

I have a splash screen activity, then a login activity. My history stack looks like:

SplashActivity
LoginActivity

when the user successfull

7条回答
  •  不知归路
    2020-11-30 02:10

    Intent.FLAG_ACTIVITY_NO_HISTORY can work in your case too if you do not want the activity on the history stack.

提交回复
热议问题