开发者

Android Keyboard Handling Primer?

I have an book that's supposed to teach everything about Android programming. Unfortunately that book is missing so much information on fundamental stuff, it's not even funny. Its index doesn't even include an entry for onKeyDown()...

Can you recommend a resource that can teach a n00b like me how to handle keyboard events and possibly even understand how they work?

For example, how do I hook a function that I wrote to a key combination?

Does "key combination" exist in开发者_开发百科 touchscreen-only Android devices?


I am not sure you can have key combinations in Android, as there are devices that only have single touch support (and no keyboards). Of course, there could have been changes. You may find some info in the android hardware compatibility reference.

For guidance you may look at the UI Events guide for Android. Also, you may try searching Google, or StackOverflow, as there are many helpful guides and tutorials for beginners. You just have to dig them out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜