Possible Duplicate:
how to implement lazy loading of images in gridview
How to fetch multiple images from url using Drawable in android?
private Drawable LoadImageFromWebOperations(String url) {
try {
InputStream is = (InputStream) new URL(url).getContent();
Drawable d = Drawable.createFromStream(is, "icon");
return d;
} catch (Exception e) {
System.out.println("Exc=" + e);
return null;
}
}
I'm using this function to return drawable image but I'm not getting how to bind list of images to gridview..
Please help me.