Exemplo n.º 1
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);
 }
Exemplo n.º 2
0
 @Override
 public void onBackPressed() {
   // 点击返回时,一定是 用户没有登陆成功
   Intent intent = new Intent("com.yoopoon.OPEN_ACTIVE_ACTION");
   intent.addCategory(Intent.CATEGORY_DEFAULT);
   this.sendBroadcast(intent);
   FramMainActivity_.intent(this).start();
   super.onBackPressed();
 }