public String[] getAccountRecord() { String account = sharedPreference.get("account", ""); String password = sharedPreference.get("password", ""); String[] arr = {account, password}; return arr; }
public void recordAccunt(String account, String password) { sharedPreference.set("account", account); sharedPreference.set("password", password); }
public void AutoLog() { sharedPreference.set("isAuto", "true"); }
public boolean isAutoLog() { if (Boolean.parseBoolean(sharedPreference.get("isAuto", "false"))) { return true; } return false; }
public void forceTolog(ContextCallback contextCallback) { user.setId(sharedPreference.get("account", "")); user.setPassWord(sharedPreference.get("password", "")); this.tryAutoLog(contextCallback); }