i want to set scandinavian keyboard as default keyboard on an android device and
i want to do this by code.
So i try with InputMethodManager :
InputMethodManager mng = (InputMethodManager)getSystemService(LoginActivity.INPUT_METHOD_SERVICE);
List<InputMethodInfo> m_list=mng.getInputMethodList();
and i find the method setInputMethod (IBinder token, String id) of the InputMethodManager class. But i don’t find examples/documentation that explain me how to use it.Any suggestion? Thanks.
You cannot modify the “default keyboard on an android device” via code from a standard SDK application. The user can choose their own keyboard and locale via the Settings application. You can send users to the proper Settings screen via
ACTION_INPUT_METHOD_SETTINGSandACTION_LOCALE_SETTINGS, which are activityIntentactions defined onandroid.provider.Settings.Applications that are part of the device firmware can use
DEFAULT_INPUT_METHODonandroid.provider.Settings.Secure.