2016-04-04 6 views

ответ

3

Попробуйте однажды:

ArrayList<String> list=new ArrayList<String>(); 

String[] locales = Locale.getISOCountries(); 

for (String countryCode : locales) { 

    Locale obj = new Locale("", countryCode); 

    System.out.println("Country Name = " + obj.getDisplayCountry()); 
    list.add(obj.getDisplayCountry()); 

} 

и установить список адаптера.

Я думаю, чтобы получить города, вы должны использовать веб-службы.

См эти ссылки:

1) List of countries and their cities in android

2) Retrieve a list of countries from the android OS

Смежные вопросы