@Override
 protected void handleUiMessage(Message msg) {
   // TODO Auto-generated method stub
   super.handleUiMessage(msg);
   RequestBaseResponse obj = (RequestBaseResponse) msg.obj;
   // 收起菊花
   hideProgressDialog();
   switch (RequestFlag.values()[msg.what]) {
     case REQUEST_GET_SMS_SUCCESS:
       {
         // 手机获取认证短信成功
         // 跳转界面
         // Intent intent = new Intent(mContext, MyProfilePhoneVerifyMobileCodeActivity.class);
         // startActivity(intent);
         String phoneNumber = editTextPhoneNumber.getText().toString();
         MyProfilePhoneVerifyMobileCodeActivity.LaunchActivity(
             MyProfilePhoneVerifyMobileCodeActivity.LaunchType.CELL, phoneNumber, mContext);
       }
       break;
     case REQUEST_FAIL:
       {
         // 请求失败
         Toast.makeText(mContext, obj.errmsg, Toast.LENGTH_LONG).show();
       }
       break;
     default:
       break;
   }
 }
  @Override
  protected void handleUiMessage(Message msg) {
    // TODO Auto-generated method stub
    super.handleUiMessage(msg);
    // 收起菊花
    hideProgressDialog();
    RequestBaseResponse obj = (RequestBaseResponse) msg.obj;
    switch (RequestFlag.values()[msg.what]) {
      case REQUEST_VERSIONCHECK_SUCCESS:
        {
          // 版本检测成功
          mOtherVersionCheckItem = (OtherVersionCheckItem) obj.body;

          ReloadData();

          if (mOtherVersionCheckItem != null
              && mOtherVersionCheckItem.verCode > QpidApplication.versionCode) {
            // 有更新
            mUpdateDialog.setTitle(mContext.getString(R.string.upgrade_title));
            mUpdateDialog.setMessage(mOtherVersionCheckItem.verDesc);
            mUpdateDialog.removeAllButton();
            mUpdateDialog.addButton(
                mUpdateDialog.createButton(
                    getString(R.string.common_btn_go),
                    new OnClickListener() {
                      @Override
                      public void onClick(View v) {
                        // TODO Auto-generated method stub
                        Uri uri = Uri.parse(mOtherVersionCheckItem.storeUrl);
                        Intent intent = new Intent();
                        intent.setAction(Intent.ACTION_VIEW);
                        intent.setData(uri);
                        startActivity(intent);
                      }
                    }));
            mUpdateDialog.addButton(
                mUpdateDialog.createButton(getString(R.string.common_btn_cancel), null));
            mUpdateDialog.show();

          } else {
            // 无更新
            MaterialDialogAlert alert = new MaterialDialogAlert(mContext);
            alert.setMessage("You are the latest version!");
            alert.addButton(alert.createButton(getString(R.string.common_btn_ok), null));
            alert.show();
          }
        }
        break;
      case REQUEST_FAIL:
        {
          // 请求失败
          Toast.makeText(mContext, obj.errmsg, Toast.LENGTH_LONG).show();
        }
        break;
      default:
        break;
    }
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // 创建界面时候,获取缓存数据
    mProfileItem = MyProfilePerfence.GetProfileItem(mContext);

    // 刷新界面
    ReloadData();
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    mUpdateDialog = new MaterialDialogAlert(this);

    // 创建界面时候,获取缓存数据
    mNotificationItem = SettingPerfence.GetNotificationItem(mContext);

    // 刷新界面
    ReloadData();

    // 检测版本
    //		VersionCheck();
  }
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    switch (requestCode) {
      case RESULT_COUNTRY:
        {
          // 选择国家码返回
          if (resultCode == RESULT_OK) {
            int postion =
                data.getExtras().getInt(MyProfileSelectCountryActivity.RESULT_COUNTRY_INDEX);
            editTextUnitedStates.getEditor().setText(countries[postion]);
            editTextUnitedStates.setTag(postion);
          }
        }
        break;
      default:
        break;
    }
  }
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
 }