Answer the question
In order to leave comments, you need to log in
How to catch "non-Latin" characters in android?
It is necessary to catch all pressing on the keyboard of the device. I show it programmatically with
...
if (view != null) {
InputMethodManager imm = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(view, 0);
}
...
.....
view.setOnKeyListener(new View.OnKeyListener() {
@Override
public boolean onKey(View v, int keyCode, KeyEvent event) {
int keyunicode = event.getUnicodeChar(event.getMetaState() );
char character = (char) keyunicode;
Log.i("KEYBOARD", character);
......
return true;
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question