private void loadCountries() { Country[] countries = Countries.getCountries(); List<String> items = new ArrayList<>(); for (Country country : countries) { items.add(country.getName()); } countryField.setAdapter( new ArrayAdapter<>(getActivity(), android.R.layout.simple_dropdown_item_1line, items)); }