Beispiel #1
0
  private void startLoginTask(LoginInfoBean loginInfoBean) {
    if (biz != null) biz.cancel();
    biz =
        new LoginBiz(getApplicationContext(), new LoginHandler(LoginActivity.this), loginInfoBean);

    biz.execute();
  }
  private void startSubmitTask() {
    if (regBiz != null) regBiz.cancel();
    String pwdmd5 = Tools.getMD5Str(findpwd_pwd_ET.getText()).toUpperCase(Locale.US);
    regBiz =
        new FindPwdBiz(
            getApplicationContext(),
            new FindpwdHandler(FindPWDActivity_InputNewPWD.this),
            YtApplication.getInstance().getFindpwdPhone(),
            ACCOUTTYPE,
            pwdmd5);

    regBiz.execute();
  }
Beispiel #3
0
 @Override
 public void onBackPressed() {
   if (loadingoverlay.getVisibility() != View.VISIBLE) {
     super.onBackPressed();
     System.exit(0);
   } else {
     if (biz != null) biz.cancel();
     loadingoverlay.setVisibility(View.INVISIBLE);
   }
 }
Beispiel #4
0
 @Override
 protected void onPause() {
   super.onPause();
   if (biz != null) biz.cancel();
   loadingoverlay.setVisibility(View.INVISIBLE);
 }