Code example for InputMethodManager

Methods: hideSoftInputFromWindow, toggleSoftInput

0
							getSystemService (Service.INPUT_METHOD_SERVICE);
 
					// If anyone knows a better way to bring up the soft 
					// keyboard, I'd love to hear about it. 
				_screenView.requestFocus ();
				imm.hideSoftInputFromWindow (_screenView.getWindowToken(), 0);
				imm.toggleSoftInput (InputMethodManager.SHOW_FORCED, 0);
				return true; 
			case MENU_IP_ADDRESS:
				showDialog (MENU_IP_ADDRESS);
				return true; 
		} 
 
		return false; 
	} 
 
	/** 
	 * Return a string describing the IP address(es) of this device. 
	 * 
	 * @return	A string describing the IP address(es) of this device. 
	 */