Since the code works all fine, I would recommend that you just alter the code a bit and use a list of the image resources to download. For example, you are currently having this...
String link = "http://192.168.0.106/productiveplus/shopowner/Uploads/Diwalli15%off.png";
URL url = new URL(link);
You can update this to work as an array;
list of the String
objects. For example, this would do the trick for you:
ArrayList<string> links;
links.add("http://192.168.0.106/productiveplus/shopowner/Uploads/Diwalli15%off.png");
for (String link : links) {
URL url = new URL(link);
}
This would allow you to return a number of Bitmap objects, that you can later use. This way you would do the same thing, but in a loop;
that is exactly what is required, unless you have a better option.