Here is my code:
public class XMLGettersSetters {
private ArrayList<String> country = new ArrayList<String>();
public ArrayList<String> getCountry() {
return country;
}
public void setCountry(String countryValue) {
this.country.add(countryValue);
Log.i("Countries", countryValue);
}
In LogCat it shows all the data, but when I am returning it and trying to show it in a ListView it is just showing the last value of the list, not all. Am I missing something?