when I use listview, I extend the ArrayAdapter, and I store the data (one list) in the ArrayAdapter, so when the data changes, I call:
adapter.add(item).;
And there is one more choice: to store the data in my list and when the data changes, it is called in MyAdapter.java:
listView.setAdapter(adapter); adapter.notifyDataSetChanged();
which is the best choice?
source share