Question

I have created five Horizontal ListView with images and texts in one activity. Using Lazy loading of images concept it is working fine. Now when it is offline, the list is showing blank,ie., no data . I need to implement memory-caching concept, such that when it is offline it will be showing the previous session datas(images & texts).

In oncreate: I am calling the Asynctask. In doinbackground method of asynctask,I am consuming Webservices containing images & texts,then I am passing those datas to the adapter. And in postexecute, I am setting my adapter to Listview.

In adapter class: getview method I am setting the texts and loading the images using lazy loading.

Please help me to get rid of this. Thanks in advance

Was it helpful?

Solution

You should store text etc. in an SQLiteDatabase and store your Images on external storage.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top