How to determine the current IME in Android?

jkhouw1 picture jkhouw1 · Apr 30, 2010 · Viewed 8.8k times · Source

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?

Answer

user302617 picture user302617 · Nov 23, 2010

You can get a default IME, use:

Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);