Bruno
Bruno

Reputation: 191

Stop AsyncTAsk on listview scrolling

on the method getview() of my Adapter in Listview, I have a AsyncTask to load image from URL.

It's work well, but I don't understand if the adapter on scrolling cancel the asynctask on running.

Can someone help me?

Upvotes: 1

Views: 183

Answers (2)

Bruno
Bruno

Reputation: 191

I tryed to use Picasso but it seems like it doen't work with ImageButton. Besides, I have also to save in SDCard after get Image by URL. I don't have problem with the Load Image Async Task, It works fine, but I don't understand if automatically ListAdapter destroy AsyncTask no longer viewed in ListView after scrolling if the AsyncTask is still in running.

Upvotes: 0

Shivam Kamat
Shivam Kamat

Reputation: 121

Try using Picasso image loader library... You won't need an async task..

Upvotes: 2

Related Questions