How can I refresh an activity when User is currently viewing that activity only.
I need to show modified listview items which are modified in server.
I am already getting updated dataitems but dun know how to refresh the UI.
How can I refresh an activity when User is currently viewing that activity only.
Share
call
yourAdapter.notifyDataSetChanged()every time the data change in your adapter so this willNotifies the attached observers that the underlying data has been changed and any View reflecting the data set should refresh itself.