SharedPreferences settings = getSharedPreferences(PREFS_NAME,
Context.MODE_PRIVATE);
settings.edit().clear().commit();
//Intent i = new Intent(FriendList.this,Login.class);
//startActivity(i);
this.finish();
Intent i = new Intent(FriendList.this,Login.class);
startActivity(i);
this.onDestroy();*/
答案 0 :(得分:1)
检查此答案是否对您有所帮助:
SharedPreferences settings = getSharedPreferences(PREFS_NAME,Context.MODE_PRIVATE);
settings.edit().clear().commit();
Intent i = new Intent(FriendList.this,Login.class);
startActivity(i);