I am using a listview that displays text and an image. I am trying to use the Task object to download the images asynchronously and load them in the view to have the listview scroll efficiently. But I get OutOfMemoryExceptions often as there are too many Bitmaps in the memory even though I save them to disc and access it. One reason i see is that there are many tasks that are created(for 20 images, 20 tasks are created) and it might also hog the memory. Is there an efficient way to do this?
Here is the code