To either each of its call or by default was the Russian layout. Or through the keyboard settings.

    1 answer 1

    private void printInputLanguages() { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); List<InputMethodInfo> ims = imm.getEnabledInputMethodList(); for (InputMethodInfo method : ims) { List<InputMethodSubtype> submethods = imm.getEnabledInputMethodSubtypeList(method, true); for (InputMethodSubtype submethod : submethods) { if (submethod.getMode().equals("keyboard")) { String currentLocale = submethod.getLocale(); //Вот тут будет нужная локаль, в Вашем случае должно прийти "ru" } } } } 
    • Thanks for the answer! He showed that everything is sad. imm.setCurrentInputMethodSubtype(submethod) requires the privileges of android.permission.WRITE_SECURE_SETTINGS, which is allowed only for system applications, which does not suit me. So there are options - to find and download the Russian-language keyboard separately, or to spice up a self-made. It is strange that in the settings of the standard Google keyboard there was no item like "default layout". - Yoko999