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.
精彩评论