0
いずれかの国のリストとその都市のリストを手に入れることができますか? これらのリストを取得するためのGoogle Apiはありますか?国と都市のリストを取得するには?
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());
}
を、アダプタためにリストを設定します。
http://www.geodatasource.com/world-cities-database/free –