コード例 #1
0
 private void setNullCookie() {
   File cookieFile = new File(LocalPath.intance().cacheBasePath + "co");
   if (cookieFile.exists()) {
     cookieFile.delete();
   }
   RequestTask.setmCookieStore(null);
 }
コード例 #2
0
 private void initData() {
   // 删除以前记录的cookie信息
   File cookieFile = new File(LocalPath.intance().cacheBasePath + "co");
   if (cookieFile.exists()) {
     cookieFile.delete();
   }
   RequestTask.setmCookieStore(null);
   String eMail = mUser.getPhone();
   String pwd = mUser.getPassword();
   auto = mUser.isRemember();
   auto = (auto == null) ? false : auto;
   if (auto) {
     mEmailText.setText(eMail);
     mPwdText.setText(pwd);
     requestLogin(eMail, pwd, auto);
   } else {
     SPUtils.clearAllInfo(this);
     Log.i(TAG, "clearAllInfos");
     mPwdText.setText("");
     if (!isManual) {
       FramMainActivity_.intent(mContext).start();
       finish();
     }
   }
   mAutoCheck.setChecked(auto);
 }