I am committing text when user press key using the key code in InputConnection
but this method will hang the view and it will release after few milliseconds
if (getCurrentInputConnection() != null) {
getCurrentInputConnection().commitText(String.valueOf((char) charCode), 1);
}
Is am I doing something wrong, or any other solution?