i am newbie in android and i am following this tutorial
public void setData(List<Model> data) {
clear();
if (data != null) {
for (Model appEntry : data) {
add(appEntry);
}
}
}
i am getting error on add(appEntry)line: The method add(Location) is undefined for the type LocationListAdapter while LocationListAdapter is my class name that extends from BaseAdapter
You should extend your LocationListAdapter to ArrayAdapter instead of BaseADapter