private void registerNumberProcess() {

    String num = phoneNumEdt.getText().toString();
    if (!StringUtils.isEmpty(num)) {
      Tools.closeKeyBoard(phoneNumEdt, RegisterActivity.this);
      displaySendSmsDialog(num);
    } else {
      phoneNumEdt.setError(getString(R.string.error_register_infor_message));
      AnimationUtils.shake(RegisterActivity.this, phoneNumEdt);
      return;
    }
  }
  private void initUI() {

    countrySpinner = (Spinner) findViewById(R.id.country_spinner_register_layout);
    ArrayAdapter<CharSequence> adapter =
        ArrayAdapter.createFromResource(
            RegisterActivity.this, R.array.countries_array, android.R.layout.simple_spinner_item);
    adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    countrySpinner.setAdapter(adapter);

    registerBtn = (Button) findViewById(R.id.register_buton);
    registerBtn.setOnClickListener(this);
    registerBtn.setActivated(false);
    phoneNumEdt = (EditText) findViewById(R.id.phone_number_register_layout_edt);
    phoneNumEdt.addTextChangedListener(
        new TextWatcher() {

          @Override
          public void onTextChanged(CharSequence s, int start, int before, int count) {
            if (!StringUtils.isEmpty(s.toString())) {
              registerBtn.setEnabled(true);
            } else {
              registerBtn.setEnabled(false);
            }
          }

          @Override
          public void beforeTextChanged(CharSequence s, int start, int count, int after) {}

          @Override
          public void afterTextChanged(Editable s) {}
        });
    phoneNumEdt.setHint(Tools.getCurrentPhoneNum(RegisterActivity.this));
    privacyTv = (TextView) findViewById(R.id.privacy_register_tv);
    privacyTv.setText(
        Html.fromHtml(
            getString(R.string.privacy_policy_register)
                + " "
                + "<a href=\"https://play.google.com/store/search?q=dinostudio8891&c=apps\">"
                + getString(R.string.agree_term_con)
                + "</a>"
                + " "
                + getString(R.string.and)
                + " "
                + "<a href=\"https://play.google.com/store/search?q=dinostudio8891&c=apps\">"
                + getString(R.string.security_policy)
                + "</a>"
                + getString(R.string.go_next)));
    Linkify.addLinks(privacyTv, Linkify.ALL);
    privacyTv.setMovementMethod(LinkMovementMethod.getInstance());
  }