How to determine the current IME in Android?

前端 未结 3 1722
长发绾君心
长发绾君心 2020-12-15 07:01

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

3条回答
  •  抹茶落季
    2020-12-15 07:30

    You can get a default IME, use:

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

提交回复
热议问题