I have an Android mobile application that consumes a WCF REST service that sends back an arbitrarily massive amount of data. The service sends this data in chunks. At the end of a chunk there is an indicator that states there is more and if that indicator is passed back to the service the next chunk is sent.
This data gets put into a ListView in the application. What I want to do is have the calls to the service loop and use a handler to update the listview as the data comes.
I have a couple questions:
Do I need to loop the AsyncTask or loop within the AsyncTask?
and
Would it be best to update the ListView as the data comes in or get all the data and then update the ListView with all the data?
Any answers to these questions or insight into this process would be appreciated.