I have an alert dialog with an EditText in it and I’d like to warn the user when the entered input text is empty. So either :
– by opening a new alert dialog on the top of the current one, but without closing the current one. I tried it and I don’t know how to it.
– by changing dynamically the message on my alert dialog, but again I don’t how
I have an alert dialog with an EditText in it and I’d like to
Share
You could do what you want when you set the buttons for your
AlertDialoglike:.setPositiveButton("Yes", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { //Here check to see if you have an empty EditText and take appropriate measures } })