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