Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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();
}
}
Source by codesfor.in #
 
PREVIOUS NEXT
Tagged: #mobile #number #validation #edittext #android
ADD COMMENT
Topic
Name
9+2 =