Search code examples
javaandroidkeyboardandroid-source

Android Gingerbread keyboard


I want to extend Android 2.3 Keyboard (LatinIme). I get source code from https://android.googlesource.com/platform/packages/inputmethods/LatinIME

After fixing some errors(missed classes) and packages rename, i can install it as bonus keyboard. But it doesn't work.

I see:

ERROR/AndroidRuntime(23089): Caused by: java.lang.NoClassDefFoundError: com.android.inputmethod.latin.BinaryDictionary

but name of my package is com.keyboard.latin and I delete all links to this missed class.

Can someone give me an advice how to solve this problem?


Solution

  • You can take some inspiration from scandinavian-keyboard, it solves similar issue (I think it's Eclair or Froyo though, not updated to work with Gingerbread). It reimplements missing parts. If you look at its sources you'll see classes like Dictionary, UserDictionaryProvider etc. There's some C code too.