How to hide the SoftKeyboard from screen when edittext is accepting input from remote? I have tried
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInputFromWindow(editText.getWindowToken(), InputMethodManager.HIDE_IMPLICIT_ONLY, 0);
It hides the softkeyboard but it also stops the edittext from taking input.