我在这里,我想向用户发出警告,如果他们不使用默认的Android softkeyboard的应用程序。 (即他们正在使用Swype输入或一些其他的事情)。
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?
您可以得到一个默认的输入法,使用:
You can get a default IME, use:
Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);