1 Intent intentBack = new Intent(this, MainActivity.class); 2 intentBack.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);//通过设置intent的flag来切断跳转的去得activity和前世的所有纠葛 3 startActivity(intentBack);
时间: 2024-10-24 05:06:35
1 Intent intentBack = new Intent(this, MainActivity.class); 2 intentBack.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);//通过设置intent的flag来切断跳转的去得activity和前世的所有纠葛 3 startActivity(intentBack);