3

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 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.

martinpelant
  • 2,961
  • 1
  • 30
  • 39

1 Answers1

2

I have not tried it but there is a method called dispatchKeyEvent(KeyEvent event). I hope it will surely meet ur needs.

Vineet Shukla
  • 23,865
  • 10
  • 55
  • 63