开发者

How to know the current IME in Android? [duplicate]

This question already has answers here: 开发者_StackOverflow How to determine the current IME in Android? (3 answers) Closed 5 years ago.

I want to know what IME is using currently in android.

I tried InputMethodManager.getEnabledInputMethodList(), but I can only get the list of IMEs.

I can't figure out how to determine which one is currently selected of the list.

How can I get which input method had selected currently?


You can get a default IME, use:

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

As this answer says.


InputMethodManager.getEnabledInputMethodList()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜