Java tutorial
//package com.java2s; //License from project: Apache License import android.text.TextUtils; public class Main { /** * Checks if it is a valid email address. IE, no.com would not pass but bob@gmail.com would. * @param target * @return */ public static boolean isValidEmail(CharSequence target) { if (TextUtils.isEmpty(target)) { return false; } else { boolean booleanToReturn = android.util.Patterns.EMAIL_ADDRESS.matcher(target).matches(); return booleanToReturn; } } }