SharedPreferences SharedPreferences login_account = FusionField.currentActivity .getSharedPreferences("rem_password",Context.MODE_PRIVATE); SharedPreferences.Editor account_editor = login_account.edit(); account_editor.putString("account", ""); account_editor.putString("password", ""); account_editor.commit();