Catch keypress of special characters with android
how can I catch a keypress of all characters that are on sw keyboards? Overriding onKeyDown() in the activity works only for standard ASCII characters like a-z0-9-!/... but doesn't work with all the UTF8 chars like ščřž (in that case this method开发者_如何学C is not called at all) I know the KeyEvent has a method getUnicodeChar(), which returns the unicode character that the key would produce. But I dont know how to get that KeyEvent when onKeyDown() is not called.
I have not tried it but there is a method called dispatchKeyEvent(KeyEvent event). I hope it will surely meet ur needs.
精彩评论