Pergunta

I want to develop a gallery which can display images from various Http url's. I am downloading the image through AsyncTask. To download multiple images I have to use same AsyncTask many times for different url's. Its getting very slow. How should I proceed?
Is AsyncTask need at all to download the image? Please guide me how should I go about in this app?

I don't have much idea about threading.

Foi útil?

Solução

I suggest you to refer this UniversalImageLoader to fulfill your purpose.

This Example provide a reusable instrument for asynchronous image loading, caching and displaying.

It has the same example which you are looking for(i.e. download the image from the different URL's and Set in Gallery/GridView/ListView).

Hope this helps ... :)

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top