Android 姜饼键盘
我想扩展 Android 2.3 键盘 (LatinIme)。我从 https://android.googlesource.com/platform/packages/inputmethods 获取源代码/LatinIME
修复了一些错误(丢失的类)并重命名包后,我可以将其安装为奖励键盘。但这不起作用。
我懂了:
错误/AndroidRuntime(23089):原因是: java.lang.NoClassDefFoundError: com.android.inputmethod.latin.BinaryDictionary
但我的包的名称是 com.keyboard.latin,我删除了这个错过的课程的所有链接。
有人可以给我建议如何解决这个问题吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以从 scandinavian-keyboard 中获取一些灵感,它解决了类似的问题(我认为它是不过,Eclair 或 Froyo 尚未更新以与 Gingerbread 配合使用)。它重新实现了缺失的部分。如果您查看其 sources 你会看到像
Dictionary
、UserDictionaryProvider
等类。还有一些 C 代码。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.