Know Default Keyboard On Android
I want to know the default keyboard chosen by the user in Android. I know I can access the list of enabled input methods using the InputMethodManager, but I want to know which one
Solution 1:
Use this to get default keyboard.
Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);
To get more information about current keyboard:
for(InputMethodInfo i: list){
if (i.getId().equals(Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD))) {
...
}
}
Post a Comment for "Know Default Keyboard On Android"