<分区>
我正在尝试使用此代码获取设备的 IME:
String currentKeyboard = Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);
currentKeyboard
是 com.sec.android.inputmethod/.SamsungKeypad
。
com.sec.android.inputmethod
代表什么?/.SamsungKeypad
代表什么?
我知道上面的代码是获取键盘的ID。查看结果,键盘的ID应该是com.sec.android.inputmethod
。
- 如果
com.sec.android.inputmethod
是键盘ID,/.SamsungKeypad
代表什么? - 原版Android默认键盘ID是多少?