protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_reg_second);
    ViewUtils.inject(this);

    initToolBar();

    phone = getIntent().getStringExtra("phone");
    pwd = getIntent().getStringExtra("pwd");
    countryCode = getIntent().getStringExtra("countryCode");

    String formatedPhone = "+" + countryCode + " " + splitPhoneNum(phone);

    String text = getString(R.string.smssdk_send_mobile_detail) + formatedPhone;
    mTxtTip.setText(Html.fromHtml(text));

    CountTimerView timerView = new CountTimerView(mBtnResend);
    timerView.start();

    SMSSDK.initSDK(
        this,
        ManifestUtil.getMetaDataValue(this, "mob_sms_appKey"),
        ManifestUtil.getMetaDataValue(this, "mob_sms_appSecrect"));

    evenHanlder = new SMSEvenHanlder();
    SMSSDK.registerEventHandler(evenHanlder);

    dialog = new SpotsDialog(this);
    dialog = new SpotsDialog(this, "正在校验验证码");
  }
  @OnClick(R.id.btn_reSend)
  public void reSendCode(View view) {

    SMSSDK.getVerificationCode("+" + countryCode, phone);
    countTimerView = new CountTimerView(mBtnResend, R.string.smssdk_resend_identify_code);
    countTimerView.start();

    dialog.setMessage("正在重新获取验证码");
    dialog.show();
  }