Intent intent = new Intent();
intent.setClass(SetActivity.this, RegisterLoginActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(intent);
转载于:https://www.cnblogs.com/ilovewindy/p/4583155.html