Question

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.inputmethod represents?
  • And what does /.SamsungKeypad represents?

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.inputmethod is the keyboard ID, what does /.SamsungKeypad represents?
  • What is the ID of the default keyboard of Android in vanilla flavor?
Was it helpful?

Solution

The first part com.sec.android.inputmethod is the package name of the entire default KeyBoard app. The one specified in the Android Manifest under package.

.SamsungKeypad is 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:

com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top