开发者

Find the language of the current Android keyboard [duplicate]

开发者 https://www.devze.com 2023-04-05 22:13 出处:网络
This question already has answers here: How to programmatically get current keyboard language on an Android device
This question already has answers here: How to programmatically get current keyboard language on an Android device (2 answers) Closed 9 开发者_开发知识库years ago.

how to find the language of the current keyboard in android in the code. and how can I set the language of the keyboard in the code. for example if the user select Chinese the Chinese keyboard should appear and if select English the English keyboard should appear .


There are plenty of questions similar to this one that are already answered. Most answers involve

InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);

0

精彩评论

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