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