简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM