Java tutorial
//package com.java2s; public class Main { public static boolean isValidEmail(String target) { return android.util.Patterns.EMAIL_ADDRESS.matcher(target.trim()).matches(); } }