Search
 
SCRIPT & CODE EXAMPLE
 

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();
}
}
Comment

PREVIOUS NEXT
Code Example
Java :: prepared statement update 
Java :: android list[i] 
Java :: java loop 
Java :: Java make digit numbers 
Java :: who created java 
Java :: java printf trailing whitespace 
Java :: play mp3 android java 
Java :: function in java 
Java :: arraylist of arraylist 
Java :: return the maximum sum of two numbers whose digits add up to an equal sum 
Java :: java exception message 
Java :: java loop over string 
Java :: check GPS is on android 
Java :: break java 
Java :: java csv line split 
Java :: get request in java 
Java :: string vs stringbuffer 
Java :: Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: plugins.flutter.io/webview 
Java :: Add delay to code in Android 
Java :: android studio alert dialog box 
Java :: check how many times a character appears in a string java 
Java :: List into string java 
Java :: java extract zip 
Java :: intent android 
Java :: find maximum in array java 
Java :: creating a directory using java 
Java :: Using enum values as string literals 
Java :: glide dependency 
Java :: execute exe java 
Java :: how to clear text fields in java 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =