private void onTransdelRegister(ResponseDataPacket dataPacket) {
   log.e("Register success...");
   PublicType.UserRegisterResult object = new PublicType.UserRegisterResult();
   try {
     object.parseJson(dataPacket.data);
     LocalConfigSharePreference.commintKeys(this, object.mKeys);
     requestLogin(object.mKeys);
   } catch (JSONException e) {
     e.printStackTrace();
     CommonUtil.showToast(R.string.toast_register_fail, this);
     exit();
   }
 }
  private boolean requestRegister() {
    if (!CommonUtil.isNetworkConnect(this)) {
      CommonUtil.showToast(R.string.toast_connet_fail, this);
      return false;
    }

    String keys = LocalConfigSharePreference.getKeys(this);
    if (keys.equals("")) {
      PublicType.UserRegister object = PublicTypeBuilder.buildUserRegister(this);

      BaseRequestPacket packet = new BaseRequestPacket();
      packet.context = this;
      packet.action = PublicType.USER_REGISTER_MASID;
      packet.object = object;

      mClientEngine.httpGetRequestEx(packet, this);
    } else {
      return requestLogin(keys);
    }

    return true;
  }