I have looked around the internet but haven\'t been able to find a working example on how to show an image from an url.
The below code is crashing a
Do not try Bitmap in the code. Just use simple Drawable image and implement its method like below. you will display image 100 percent
Drawable drw =LoadImageFromWebOperations(imageUrl);
image.setImageDrawable(drw);
return image;
private Drawable LoadImageFromWebOperations(String strPhotoUrl)
{
try
{
InputStream is = (InputStream) new URL(strPhotoUrl).getContent();
Drawable d = Drawable.createFromStream(is, "src name");
return d;
}catch (Exception e) {
System.out.println("Exc="+e);
return null;
}