1. Download our Official Android App: Forums for Android!

Apps ListView not populating dynamically

Discussion in 'Android Development' started by AVINAZZ, Aug 19, 2011.

  1. AVINAZZ

    AVINAZZ Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    2
    Joined:
    Aug 19, 2011

    Aug 19, 2011
    2
    0
    25
    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.
     

    Advertisement

Share This Page

Loading...