📅  最后修改于: 2022-03-11 14:53:33.452000             🧑  作者: Mango
val newIntent = Intent(this@Activity1, Activity2::class.java)
newIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK)
newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
this@Activity1.startActivity(newIntent)