Java tutorial
//package com.java2s; import java.util.regex.Matcher; import java.util.regex.Pattern; import android.text.TextUtils; public class Main { public static boolean isValidEmail(final String emailAddr) { if (TextUtils.isEmpty(emailAddr)) return false; Pattern pattern = Pattern.compile("[\\w\\.\\-]+@([\\w\\-]+\\.)+[\\w\\-]+", Pattern.CASE_INSENSITIVE); Matcher matcher = pattern.matcher(emailAddr); return matcher.matches(); } }