Code example for EditText

Methods: getText, getWindowToken

0
		new SubscribeEmailTask().execute();
	} 
 
	public void subscribeSms(View view) {
		this.inputMethodManager.hideSoftInputFromWindow(
				this.sms.getWindowToken(), 0);
 
		if (this.sms.getText().length() < 10) {
			this.displaySmsAlert();
		} else { 
			new SubscribeSmsTask().execute();
		} 
	} 
 
	public void viewMembers(View view) {
		startActivity(new Intent(MessageBoardActivity.this,
				MemberListActivity.class)); 
	} 
 
	public void viewQueue(View view) {
		Toast.makeText(this, Constants.QUEUE_NOTICE, Toast.LENGTH_LONG).show();