Code example for EditText

Methods: getWindowToken

0
		} 
	} 
 
	public void post(View view) {
		this.inputMethodManager.hideSoftInputFromWindow(
				this.message.getWindowToken(), 0);
		new PostMessageTask().execute();
	} 
 
	public void subscribeEmail(View view) {
		this.inputMethodManager.hideSoftInputFromWindow(
				this.email.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();