I need to identify the event of back press which hide the softkeyboard
I have tested by override following methods
But the controller is not reaching there
Use dispatchKeyEventPreIme in subclassed EditText view:
@Override
public boolean dispatchKeyEventPreIme(KeyEvent event) {
if(KeyEvent.KEYCODE_BACK == event.getKeyCode()) {
//do what you need here
}
return super.dispatchKeyEventPreIme(event);
}