I have a query vs a local SQLite DB that returns thousands of records in my Android app. How can I populate a ListView without blocking it? I think I have to replicate what happens in apps like Twitter where data is retrieved in block of records, but I don't know what is the right way to do.
Asked
Active
Viewed 907 times
1
-
as in blocking locks up everything else/the app? – sealz Jul 12 '11 at 18:00
3 Answers
3
I am thinking that maybe memory might be an issue as well?
You might want to take a look at this ...
1
Well I think you can use Paging concept. Just like you see in different applications. Let's say, it downloads first 50 items then when you reach at the end of the ListView it get the next 50 items again in the thread and so on.... Its quiet easy and you can have the control as well.

Khawar
- 5,197
- 4
- 28
- 52