MichaelRocks/libphonenumber-android

Default country from given number

nareshkatta99 opened this issue · 1 comments

How to get the country from the given number which is already in the database?

You can use PhoneNumberUtil.getRegionCodeForCountryCode() or PhoneNumberUtil.getRegionCodesForCountryCode() and pass a phone code of the parsed phone number. Another option could be to use PhoneNumberOfflineGeocoder but it's not available in this port.