i have an sqlite table with 2000 records. I need to show this records in listview. How can i load them dynamically? For example when i start an activity i want to fill the whole screen with data – and no more. When i begin scrolling, i want to add additional records at the bottom of the list. So as much as i scroll the more records i get. I know i have to make request to the database each time i scroll because i can not load all data in the memory. I think there was something similar with content resolver, but i can not find it. Any ideas?
Share
This may help? http://codehenge.net/blog/2011/06/android-development-tutorial-asynchronous-lazy-loading-and-caching-of-listview-images/
Although youd switch where you get the info from…i.e. your database