mobile number validation to edittext in android

100

mobile number validation to edittext in android -

public boolean isValidPhone(CharSequence phone) {
if (TextUtils.isEmpty(phone)) {
return false;
} else {
return android.util.Patterns.PHONE.matcher(phone).matches();
}
}

Comments

Submit
0 Comments