I had develop a mobile apps to load image from URL path.
Here is my code.
    private Drawable LoadImageFromWebOperations(String url)
    {
        try
        {
            InputStream is = (InputStream) new URL(url).getContent();
            Drawable d = Drawable.createFromStream(is, "src name");
            return d;
        }catch (Exception e)
        {   
        System.out.println("Exc="+e);
        return null;
        }
    }
This method is work well in emulator which android API 10 but cannot work in android device. The device i use test is API 16 and 17.
Kindly look for help. Thanks.
 
     
     
     
    