How to get my InputMethodService

My application has 2 parts. In InputMethodService and Activity. What I do is click on the button in action to see all available InputMethods, but I do not see my InputMethod list in the list.

But after that I see it from the settings →> Language and keyboard

This is the corresponding code.

InputMethodManager inputManager = (InputMethodManager) getSystemService (Context.INPUT_METHOD_SERVICE);
                    inputManager.showInputMethodPicker();
+3
source share
1 answer

This can help:

InputMethodManager imeManager = (InputMethodManager) getApplicationContext().getSystemService(INPUT_METHOD_SERVICE); 
List<InputMethodInfo> lst = imeManager.getEnabledInputMethodList();
for (InputMethodInfo info : lst) {
   System.out.println(info.getId() + " " + info.loadLabel(getPackageManager()).toString());
}
+1
source

All Articles