I am using icu4j in my android code. The jar is about 10MB, which causes my entire application to register an apk of 15MB. Of course the 15MB is likely due to Proguard helping reducing the size. Anyway, does anyone know of a smaller alternative to icu4j? I am using icu4j in conjunction with libphonenumber
for one purpose only, which is detailed here, and which I reproduce below:
You need:
getSupportedRegions() to get the list of region codes
getCountryCodeForRegion(regionCode) to get the country calling code for each one (1, 44 etc)
And then to get the actual names, you should use ICU4J -> http://icu-project.org/apiref/icu4j/ --> it will get you country names from these region codes in whatever language your user speaks. (getDisplayCountry())