@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // 解决程序在安装完成后点击打开按钮后 程序按home键后再次进入程序一直重启无法后台运行的bug
    if ((getIntent().getFlags() & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) != 0) {
      finish();
      return;
    }
    setContentView(R.layout.wx_loading);
    GlobalVariable.currentActivity = this;
    Util.getStatusBarHeight(this);
    if (SharedPreferencesUtil.getSharedPreferences(this, GlobalConstant.REMEMBER_PASSWORD, false)) {
      phone =
          SharedPreferencesUtil.getSharedPreferences(
              LoadActivity.this, GlobalConstant.UserInfoPreference.TELPHONE, "");
      password =
          SharedPreferencesUtil.getSharedPreferences(
              LoadActivity.this, GlobalConstant.UserInfoPreference.PASSWORD, "");
      if (!TextUtils.isEmpty(phone) && !TextUtils.isEmpty(password)) {
        new Handler()
            .postDelayed(
                new Runnable() {

                  @Override
                  public void run() {
                    Map<String, String> reqMap = HttpRequestUtil.getCommonParams("");
                    reqMap.put("phone", phone);
                    reqMap.put("password", SecurityUtil.MD5(password));
                    HttpRequestUtil.sendHttpPostCommonRequest(
                        LoadActivity.this,
                        HttpAddressProperties.LOGIN_URL,
                        reqMap,
                        LoginResp.class,
                        loginHandler);
                  }
                },
                2000);
      } else {
        toLoginActivity();
      }
    } else {
      toLoginActivity();
    }
  }
 @Override
 public void otherErr() {
   super.otherErr();
   finish();
 }
 @Override
 public void networkErr() {
   super.networkErr();
   finish();
 }
 @Override
 public void netTimeout() {
   super.netTimeout();
   finish();
 }
 @Override
 public void onResponse() {
   super.onResponse();
 }
 @Override
 public void otherErr() {
   super.otherErr();
   startActivity(new Intent(mContext, LoginActivity.class));
   finish();
 }
 @Override
 public void netTimeout() {
   super.netTimeout();
   startActivity(new Intent(mContext, LoginActivity.class));
   finish();
 }