Is there any java library which helps suggest international phone prefix by country? For example, We have Romania and the suggestion would be +40
Asked
Active
Viewed 78 times
1
-
4Not Sure, but why not have it in a Map? One time effort – rajesh Apr 04 '13 at 12:03
-
1Agree with rajesh: get your list (http://en.wikipedia.org/wiki/List_of_country_calling_codes#Complete_listing) and store it in a `Map` – Vincent van der Weele Apr 04 '13 at 12:07
-
it's a lot:) but thanks – Madrugada Apr 04 '13 at 12:08
-
You can copy paste the wiki link content @Heuster posted to a text file. Parse it and populate the map – rajesh Apr 04 '13 at 12:10
-
1http://stackoverflow.com/questions/10772329/how-to-get-country-phone-prefix-from-iso – Stephen C Apr 04 '13 at 12:22
-
You can try using Google's phone number library http://code.google.com/p/libphonenumber/ – devnull Apr 04 '13 at 12:22
-
1@rajesh - Not a one time effort. The effort needs to be repeated each time there is a change. A better approach is suggested by the linked question. – Stephen C Apr 04 '13 at 12:24