Android Custom IME uses default on-screen keyboard

When creating an IME for Android, you need to support an on-screen keyboard (OSK) by overriding many InputMethodService methods such as onCreateInputView ().

Is there a way to use the on-screen keyboard from default IME users. For example, you can say that the default IME for Android is the default IME by default. When using my IME, there is a way to use OSK from the default IME for Android, instead of manually handling the whole thing (including prediction, etc.). I do not want to replace users on the on-screen keyboard with this IME.

Alternatively, I could probably pull the source for the default Android keyboard and use this.

+8
android android-softkeyboard ime on-screen-keyboard
source share
1 answer

There is absolutely no way to achieve this. Think of the default IME as a standalone application, and you cannot control this from another application. My suggestion was to pull the LatinIME source code from AOSP and then use it to create your own IME. And trust me almost 99% (just to be safe, but I think it's 100%) of the keyboards on the PlayStore used LatinIME as a starting point. There are many things on the keyboard.

0
source share

All Articles