Android Keyboard IME Detection

How can I determine which language is used for input in EditText. I know that API 13 has getCurrentInputMethodSubtype , but what is an alternative for older versions?

+7
source share
1 answer

Not. And I would not even count on the fact that the above works on all keyboards. I wrote a popular keyboard and I have no idea where this infrastructure will get this information from: there is no API for them to ask what type of keyboard we or for us are updating if we switch (say, from a user using a shortcut in the language of the key switch keys )

The keyboard API is usually a bastard-bastard. They don't seem to think too much about this or work with other major keyboard developers when adding new features.

+2
source

All Articles