I am trying to add empty field validations on EditText on AlertDialog. But even after field is empty error message is not getting displayed, instea
EditText
AlertDialog
Try like this:
if (TextUtils.isEmpty(edEvent)) { editEvent.setError("Please Enter Event Name."); editEvent.requestFocus(); return; }