Java tutorial
//package com.java2s; //License from project: Open Source License import android.text.TextUtils; public class Main { public final static boolean isValidEmail(CharSequence charSequence) { return !TextUtils.isEmpty(charSequence) && android.util.Patterns.EMAIL_ADDRESS.matcher(charSequence).matches(); } }