I want to show ISO 3166 country code and its ISD code in list
Like:
ind +91
irq +964
ita +39
With the help of java.util.Locale
I have got all ISO 3166 country codes but now I want ISD codes of every country.
You can use Google's libphonenumber and use its PhoneNumberUtil.getInstance().getCountryCodeForRegion()
. It takes an ISO 3166 code as a String as an argument.
Note that this utility class also has a .getSupportedRegions()
method.