I'm taking some personal details from user in a form which is actually a custom Alertdialog
. Now when user presses Submit button present within the Alertdialog
, if there is an validation error; I'm trying to display another Alertdialog
with error message like Please Enter First Name.
What is happening is when 2nd Alertdialog
is being displayed due to a validation error, the main Alertdialog
(registration form) gets disappeared.
Any reason what might me causing this. Any help appreciated.
Edit
Please note that I have considered setError
but I also have some other views like Spinner
, RadioButton
in my layout. So just using setError
for EditText
is not whole solution for my problem.