문제

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.

도움이 되었습니까?

해결책

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 ... :)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top