“No keyboard for id 0” - what does it mean?

旧时模样 提交于 2019-11-29 02:14:14

Google's answer is

" The log is normal; it happens the first time a keymap is needed for a device in a process. "

http://groups.google.com/group/android-developers/browse_thread/thread/477caf755085b108

So therefore if you started Activity2 before Activity1 you would see the warning in Activity2 and not Activity1!

As I said I think a lot of developers get this message and it's just a warning not an error; it can be ignored.

As @Blundell said, it's normal. But it always consumes the first keyPressed event. Finally, I add this on init:

setFocusableInTouchMode(true);

I don't know why, but this warning message never annoys me again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!