am c0234a9d: Merge change 22474 into eclair
Merge commit 'c0234a9df9cffc0166c39eb0e8561d664a5438a3' into eclair-plus-aosp * commit 'c0234a9df9cffc0166c39eb0e8561d664a5438a3': Compose Message "To" field allows adding sequence of characters as contact
This commit is contained in:
@@ -1263,6 +1263,21 @@ public final class Telephony {
|
||||
return match.matches();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the number is a Phone number
|
||||
*
|
||||
* @param number the input number to be tested
|
||||
* @return true if number is a Phone number
|
||||
*/
|
||||
public static boolean isPhoneNumber(String number) {
|
||||
if (TextUtils.isEmpty(number)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Matcher match = Regex.PHONE_PATTERN.matcher(number);
|
||||
return match.matches();
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains all MMS messages in the MMS app's inbox.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user