Search code examples
androidandroid-softkeyboard

How to check if my custom keyboard has been enabled in settings


I am making a custom softkeyboard. Is there anyway to check if it has been enabled in settings?


Solution

  • Turned out I just had to do this:

     InputMethodManager im = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
       String list = im.getEnabledInputMethodList().toString();
       if(list.contains(<MY KEYBOARD ID>)){
       //Do something
       }