コード例 #1
0
  private void doRegister() {
    String password = ((EditText) findViewById(R.id.et_register_password)).getText().toString();
    if (password.length() < 6) {
      Toast.makeText(this, getString(R.string.input_password_tip), Toast.LENGTH_SHORT).show();
      return;
    }

    String verify = ((EditText) findViewById(R.id.et_register_verify)).getText().toString();
    if (StringUtils.isEmpty(verify)) {
      Toast.makeText(this, getString(R.string.input_smscode_tip), Toast.LENGTH_SHORT).show();
      return;
    }

    AppModel.INSTANCE.getLogin().register(phone, password, verify);
  }
コード例 #2
0
 private void doRequestSmsCode() {
   tvVerifyAgain.setClickable(false);
   tvVerifyAgain.setTextColor(getResources().getColor(R.color.grey));
   AppModel.INSTANCE.getLogin().getRegisterSmsCode(phone);
   handler.post(timeTask);
 }