My problem was that when a user clicks the Sign Up for example button I wanted to validate a field if it contains a valid email and after that dismiss or keep the dialog showing.
Continue reading “Android prevent a dialog from closing when a button is clicked”