Code example for InputMethodService

Methods: getSystemService

0
    } 
 
    private static InputMethodManager getInputMethodManager(
            InputMethodService inputMethodService) {
        return (InputMethodManager) inputMethodService
                .getSystemService(Context.INPUT_METHOD_SERVICE);
    } 
 
	/*private InputMethodSubtype getVoiceImeSubtype( 
			InputMethodManager inputMethodManager, 
			InputMethodInfo inputMethodInfo) throws SecurityException, 
			IllegalArgumentException { 
		Map<InputMethodInfo, List<InputMethodSubtype>> map = inputMethodManager 
				.getShortcutInputMethodsAndSubtypes(); 
		List<InputMethodSubtype> list = map.get(inputMethodInfo); 
		if (list != null && list.size() > 0) { 
			return list.get(0); 
		} else { 
			return null; 
		} 
	}*/