yac mac
yac mac

Reputation: 73

web service returns 10000 rows of data, how to handle this

this is obviously too much data to display in an android app.. what can i do to mitigate this problem ?

I tried to show all 10000 rows in a list view but i got poor performance. I also tried to display all 10000 rows of data in the list view but that just made it slow

Upvotes: 2

Views: 258

Answers (1)

omerv2
omerv2

Reputation: 81

Why do you need that method ? WS method's approach is wrong. First of all, you must change method signature like this (int pageNumber, int recordNumber ) and make pagination enabled. If you use a listview, you can show the first 10 record. Then, if the user need more than that, could click to show more button.

Upvotes: 1

Related Questions