I have an activity with text edits one for name, email and password and a button that take the user to next activity.
The problem is that even if the user entered a invalid email address he still can go to second activity, I want the email address to be checked than if he entered a valid email address he can go to second activity, if not a toast message appears says INVALID EMAIL ADDRESS.
I am working with KOTLIN but I can work also with java.
Please can anyone guide me on how I can do it ?
Thanks in advance.