I'm already able to get a list of countries, but the name are desplayed in my language (italian). I need them to be desplayed in english, this is what I have right now (This code is not mine, I copied it from the web)
String[] locales = Locale.getISOCountries();
ArrayList<String> list = new ArrayList<String>(500);
for (String countryCode : locales) {
Locale obj = new Locale("en", countryCode);
list.add(obj.getDisplayCountry());
}
Collections.sort(list);
country = new String[list.size()];
country = list.toArray(country);
Thank you =)
You should specify the output locale with
Locale.getDisplayCountry(Locale)
and something like