I’m trying to get the IME of the device using this code:
String currentKeyboard = Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);
where currentKeyboard is com.sec.android.inputmethod/.SamsungKeypad.
- What does
com.sec.android.inputmethodrepresents? - And what does
/.SamsungKeypadrepresents?
I know that the above code is to get the ID of the keyboard. By looking on the result, the ID of the keyboard should be com.sec.android.inputmethod.
- If
com.sec.android.inputmethodis the keyboard ID, what does/.SamsungKeypadrepresents? - What is the ID of the default keyboard of Android in vanilla flavor?
The first part
com.sec.android.inputmethodis the package name of the entire default KeyBoard app. The one specified in the Android Manifest underpackage..SamsungKeypadis the name of the InputMethodService that is your explicit Keyboard in this case. The package contains everything: Setting, prediction algorithms, keyboard etc. This is just the keyboard. The default Latin keyboard is: