Alex Rivera | Logout

How to determine the current IME in Android?

Asked 2010-04-30T13:17:44.567
16

I have an application where I would like to warn the user if they are not using the default Android softkeyboard. (i.e. they are using Swype or some thing else).

How can I check which input method they currently have selected?

Edit
Report

1 Answer

7

InputMethodManager has getEnabledInputMethodList(). You get an InputMethodManager from getSystemService() in your Activity.

As of API 34, InputMethodManager also has a method getCurrentInputMethodInfo() which appears to return the currently selected IME.

answered 2010-04-30T13:38:57.277

Your Answer