public static void saveLogoutOnExitPref(boolean logoutOnExit){
  Preferences prefs=getPrefs();
  prefs.putBoolean(getCustomUserKey(LOGOUT_ON_EXIT_KEY),logoutOnExit);
  flushPrefs(prefs);
}

public static void saveLogoutOnExitPref ( boolean logoutOnExit ) { Preferences prefs = getPrefs ( ) ; prefs . putBoolean ( getCustomUserKey ( LOGOUT_ON_EXIT_KEY ) , logoutOnExit ) ; flushPrefs ( prefs ) ; }
stores the specified preference of the active user to logout on closing android studio .
