Example usage for Java android.telephony PhoneNumberUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
char | PAUSE |
char | WAIT |
int | FORMAT_NANP NANP formatting |
int | FORMAT_JAPAN Japanese formatting |
boolean | compare(String a, String b) Compare phone numbers a and b, return true if they're identical enough for caller ID purposes. |
String | convertKeypadLettersToDigits(String input) Translates any alphabetic letters (i.e. |
String | extractNetworkPortion(String phoneNumber) Extracts the network address portion and canonicalizes (filters out separators.) Network address portion is everything up to DTMF control digit separators (pause or wait), but without non-dialable characters. |
String | formatNumber(String source, int defaultFormattingType) Formats the given number with the given formatting type. |
void | formatNumber(Editable text, int defaultFormattingType) Formats a phone number in-place. |
String | formatNumber(String phoneNumber, String defaultCountryIso) Format a phone number. |
String | formatNumber(String source) Breaks the given number down and formats it according to the rules for the country the number is from. |
String | formatNumber(String phoneNumber, String phoneNumberE164, String defaultCountryIso) Format the phone number only if the given number hasn't been formatted. |
String | formatNumberToE164(String phoneNumber, String defaultCountryIso) Formats the specified phoneNumber to the E.164 representation. |
int | getFormatTypeForLocale(Locale locale) Returns the phone number formatting type for the given locale. |
String | getNumberFromIntent(Intent intent, Context context) Extracts the phone number from an Intent. |
boolean | isGlobalPhoneNumber(String phoneNumber) |
boolean | isVoiceMailNumber(String number) isVoiceMailNumber: checks a given number against the voicemail number provided by the RIL and SIM card. |
boolean | isWellFormedSmsAddress(String address) Return true iff the network portion of address is, as far as we can tell on the device, suitable for use as an SMS destination address. |
String | normalizeNumber(String phoneNumber) Normalize a phone number by removing the characters other than digits. |
String | stripSeparators(String phoneNumber) Strips separators from a phone number string. |