Android examples for User Interface:EditText
is Email input Valid from EditText
//package com.java2s; import android.util.Patterns; import android.widget.EditText; public class Main { public static boolean isEmailValid(EditText editText) { return Patterns.EMAIL_ADDRESS.matcher(editText.getText()).matches(); }/*ww w. j a v a2s . c o m*/ }