如何确定当前IME Android中? [英] How to determine the current IME in Android?

查看:174
本文介绍了如何确定当前IME Android中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里,我想向用户发出警告,如果他们不使用默认的Andr​​oid 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);

这篇关于如何确定当前IME Android中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆