When a user starts writing on a hardware keyboard I need the activity to direct that input to a certain edittext view.
I’ve tried to “hard code” it by overriding key events, but that is very inefficient. Especially when it comes to supporting various countries and languages..
Example:
case KeyEvent.KEYCODE_A:
case KeyEvent.KEYCODE_B:
case KeyEvent.KEYCODE_C:
etc.
Is there any way of doing this simple and clean in Android?
As a reference, Google Play Store has that same feature I’m looking for.
Thanks
You may try this.