开发者

Android How to get key code events from Softkeboard

Here I am referring to Softkeybo开发者_如何学运维ard sample application from Android. How can we get the keycode events in an application? As the Softkeyboard/android softkeyboard is running as a service, so how it will return pressed keycode events back to the application? Actually i want to capture the pressed key events from the softkeypad and sent it over a socket please suggest.


I think you should override onKeyDown event and then check what keycode you are looking for. In developer.android.com number of keycode is available so you can have it. Please feel free to ask, if you want in detail.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜