Can an input method be selected and activated programmatically?
An application can request an input method that supports a specific locale using the InputContext.selectInputMethod method, but it cannot select a specific input method – that selection is up to the user. An application can activate an input method using the InputContext.setCompositionEnabled method.