How to validate an email address in Android

String email = "";
if ( android.util.Patterns.EMAIL_ADDRESS.matcher(email).matches() ) {

Do you like to read about Grails / Geb / Groovy development? If the answer is yes, subscribe to Groovy Calamari. A weekly curated email newsletter about the Groovy ecosystem. Curated by me 🎉

Leave a Reply

Your email address will not be published. Required fields are marked *