Created at first for usage on smartphone devices, the libphonenumber has evolved into a fully-blown library for dealing with phone numbers and their various formats used around the Globe.
The library can handle a set of basic phone number operations, like:
- parsing
- formatting
- storing
- validating
libphonenumber is extremely easy to use and comes with lots of examples and usage instructions.
The library should be a main-stay in any developer's portfolio if he plans to create mobile apps in his distant future.
Features:
- Phone numbers for 239 regions
- Formatting/validating phone numbers for 236 regions of the world
- Provides geographical information for phone numbers
- provides carrier information for phone numbers
- Gets the type of the number based on the number itself
- Able to distinguish Fixed-line, Mobile, Toll-free, Premium Rate, Shared Cost, VoIP, and Personal Numbers
- Can compare two numbers and see if they are the same
- Provides sample numbers for 218 countries/regions,
- Can tell if a phone number (format) is valid or not
- Formats phone numbers on-the-fly
- Finds numbers in text input
What is new in this release:
- New APIs for ShortNumberInfo. The old APIs have been deprecated and will be removed in an upcoming release.
What is new in version 6.3:
- Changing the offline geocoder to not return any country at all if the number could belong to multiple countries.
- Removing obsolete code that treated countries with no metadata as valid.
- New alternate formatting data for country calling code(s): 54, 91.
What is new in version 6.2:
- Better exclusion of dates when matching phone numbers from text.
- Handle phone input in RFC3966 with missing tel: prefix.
What is new in version 6.1:
- Adding MetadataLoader support to allow custom metadata loading from alternative sources (should have no visible impact to users).
- Fixing bug where digits could be lost in as-you-type formatting and formatting patterns incorrectly applied.
What is new in version 6.0:
- Better support for detecting phone numbers in text that are beside each other
- Change to how Japanese numbers beginning with "00" are modelled, with the
- side-effect that the maximum possible number length has been extended by 1.
- Handle StringIndexOutOfBoundsException in the AsYouTypeFormatter when the
- national prefix that was extracted was not found in the prefix. This affected
- countries with very long carrier codes, such as Korea.
What is new in version 5.8:
- Renamed ShortNumberUtil to ShortNumberInfo -> the former class is now deprecated and will be deleted in a later release. At the moment it just delegates to ShortNumberInfo.
- New methods in the ShortNumberInfo API - isCarrierSpecific, singleton interface, isPossibleShortNumber, isValidShortNumber, getShortNumberCost. Note this is an experimental API at the moment and subject to change.
What is new in version 5.6:
- Fix for as-you-type-formatting bug affecting countries with no national prefix formatting rule, such as China.
What is new in version 5.5:
- Fixed problem with formatNumberForMobileDialing for HU and CL.
- Changed internal initialization code and made more fields final.
- Updated geocoding data for country calling code(s): 374 (am, en, ru)
What is new in version 5.4:
- Switched formatNumberForMobileDialing to prefer national format to international format when the number is dialed from the same region the phone number is from.
Requirements:
- Java 1.5 or higher
Comments not found