我想执行一个注销功能,我想在注销前清除所有活动并开始一个新的登录活动
这是我的代码
Utilities.logoutPlayerDefaults(Profile.this);
Utilities.vibrate(Profile.this);
Intent myIntent = new Intent (Profile.this,FBLogin.class);
myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(myIntent);
但它不起作用。如果我按返回按钮,我会返回个人资料