1

I am making a small android application in which I am using endless list view using https://github.com/commonsguy/cwac-endless/

The data on the server end may contain thousand of entries so it will be quite large to download all the values at once. Should I parse the data in parts using one link or should I break the web services in parts and call them using a sax parser in cacheInBackground() after some interval of time from different links.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
Nitin
  • 1,966
  • 4
  • 22
  • 53

2 Answers2

3

I think major problem is not parsing I think major problem is of downloading time of large file

enter image description here

Dheeresh Singh
  • 15,643
  • 3
  • 38
  • 36
3

As Dheeresh is trying to tell you, download times will be much longer than parsing times. Hence, worry more about the download times, and worry less about the parsing times.

Should I parse the data in parts using one link or should I break the web services in parts and call them using a sax parser in cacheInBackground() after some interval of time from different links.

You should "break the web services in parts" to download part of your data, parse that, and load it into your adapter. When the user then scrolls to the bottom again, download and parse the next part of your data and load that into your adapter. And so on.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491