コード例 #1
0
  public void subscribeSms(View view) {
    this.inputMethodManager.hideSoftInputFromWindow(this.sms.getWindowToken(), 0);

    if (this.sms.getText().length() < 10) {
      this.displaySmsAlert();
    } else {
      MessageBoard.instance().subscribeSms(this.sms.getText().toString());
      Toast.makeText(this, Constants.CONFIRM_SUBSCRIPTION_MESSAGE, Toast.LENGTH_LONG).show();
    }
  }
コード例 #2
0
 public void subscribeEmail(View view) {
   this.inputMethodManager.hideSoftInputFromWindow(this.email.getWindowToken(), 0);
   MessageBoard.instance().subscribeEmail(this.email.getText().toString());
   Toast.makeText(this, Constants.CONFIRM_SUBSCRIPTION_MESSAGE, Toast.LENGTH_LONG).show();
 }
コード例 #3
0
 public void post(View view) {
   this.inputMethodManager.hideSoftInputFromWindow(this.message.getWindowToken(), 0);
   MessageBoard.instance().post(this.message.getText().toString());
 }