I am very new to Android development. I am little confuse about the use of Adapter.notifyDataSetChanged()
with ArrayAdapter
and ListView
. In my project, I am displaying all student in ListView
with the help of an ArrayAdapter
. The ArrayAdapter
is getting the data (ArrayList
) from local(Sqlite
) database. further, the local database is getting the data from server whenever the server data is changed.
I created the adapter
instance in onCreate()
and I bound the Listview
with it. Whenever the local database is changed, I am trying to refresh the ListView
with notifyDataSetChanged()
method but somehow its not working.