Here you can find the source of validEmail(String email)
public static boolean validEmail(String email)
//package com.java2s; import java.util.regex.Pattern; import android.util.Patterns; public class Main { public static boolean validEmail(String email) { Pattern pattern = Patterns.EMAIL_ADDRESS; return pattern.matcher(email).matches(); }//from ww w . ja va2s. c o m }