2016-04-04 13 views

Antwort

3

Probieren Sie dies einmal:

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()); 

} 

und stellen Sie die Liste an Adapter.

Ich denke, um Städte zu bekommen, müssen Sie Webservices verwenden.

beziehen sich diese Verbindungen:

1) List of countries and their cities in android

2) Retrieve a list of countries from the android OS

Verwandte Themen