开发者

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

开发者 https://www.devze.com 2023-01-13 18:02 出处:网络
This question already has answers here: 开发者_StackOverflow How to determine the current IME in Android?
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

精彩评论

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