mobile number validation to edittext in android

Solutions on MaxInterview for mobile number validation to edittext in android by the best coders in the world

showing results for - "mobile number validation to edittext in android"
Tarquin
06 May 2018
1public boolean isValidPhone(CharSequence phone) {
2if (TextUtils.isEmpty(phone)) {
3return false;
4} else {
5return android.util.Patterns.PHONE.matcher(phone).matches();
6}
7}
8