I have a dialog with EditText for input. When I click the \"yes\" button on dialog, it will validate the input and then close the dialog. However, if the input
EditText
This is probably very late reply, but using setCancelable will do the trick.
alertDial.setCancelable(false);