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?
Asked
Active
Viewed 275 times
3
-
Does your login has an usecase using completable or observable? If you can put some code for us to understand how you're setting things up would help. – Alexander Cavalheiro Becker Dec 20 '18 at 11:26
1 Answers
-1
You can use this answer to show alert dialog. All you need to change is, showing your error message in the setMessage method.

caneru
- 391
- 1
- 2
- 15