I have a listactivity which has to be updated by values passed by the eventlistener for XMPP pubsub.
On sysout the fetching of data is confirmed but when adding those data to the listview, either by adding values to adapter or updating the list variable followed by notifydatasetchanged never updates(redraw) the listview in realtime.
Everytime i come back from different tabactivity the listview gets filled up.
I want, whenever the new data is arrived the listview get updated(refreshed) with it in realtime.
Any pointer or guidance is highly appreciated.
P.S: I have tried using both Baseadapter and Arrayadapter along with notifydatasetchanged at appropriate places.
On sysout the fetching of data is confirmed but when adding those data to the listview, either by adding values to adapter or updating the list variable followed by notifydatasetchanged never updates(redraw) the listview in realtime.
Everytime i come back from different tabactivity the listview gets filled up.
I want, whenever the new data is arrived the listview get updated(refreshed) with it in realtime.
Any pointer or guidance is highly appreciated.
P.S: I have tried using both Baseadapter and Arrayadapter along with notifydatasetchanged at appropriate places.