|
发表于 2021-10-8 11:00:49
只看该作者
沙发
val secondIntent = Intent()
secondIntent.setClassName("package", "class")
val activityOptions = ActivityOptions.makeBasic()
activityOptions.launchDisplayId = 1
secondIntent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK or Intent.FLAG_ACTIVITY_NEW_TASK)
startActivity(secondIntent, activityOptions.toBundle())
|
|