How to validate an email address in Android

String email = "me@email.com";
if ( android.util.Patterns.EMAIL_ADDRESS.matcher(email).matches() ) {
// VALID EMAIL
}

Leave a Reply

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