Change of Data in a ListView in Android -
i have list view populated data.i need change data in listview on click of button.now problem data associated adapter getting changed same not getting changed in ui. when change orientation landscape portrait,the new data getting displayed.can suggest solution this.
thanks in advance.
call notifydatasetchanged()
on listadapter
.
when changing orientation works because default on orientation change, activity gets destroyed , recreated, recreating list adapter.
Comments
Post a Comment