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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -