3

I am working on a login module where I have to show alert dialog if the login is unsuccessful. I have a authentication process in viewmodel and I have to display an error in alert dialog.How it can be done?

Sam
  • 571
  • 1
  • 6
  • 22

1 Answers1

-1

You can use this answer to show alert dialog. All you need to change is, showing your error message in the setMessage method.

Android simple alert dialog

caneru
  • 391
  • 1
  • 2
  • 15