Search code examples
androiderror-handlingdialogandroid-alertdialogcustomdialog

android dialog problem


When using a custom dialog in an Android App how is it then possible to let the user know, that he/she has entered a wrong argument, e.g. a wrong password or username?

Possible an AlertDialog or just a Toast_Message?

Thank you


Solution

  • You can add a textview to your customdialog, if the user/password combination fails, you only need to display this textview with the message wanted.

    It will be better than AlertDialog, 2 consecutives dialog aren't good for the user. And the toast message are not always understandable for all users.