same question are asked in SO you can search for that,. SAME Question InputStream in = null; try { URL url = new URL("URL FOR IMAGE"); URLConnection In this post we will learn how to download image from a URL using Android if (out != null) { out.close(); } } int width, height; ImageView image = (ImageView)
In order to download an image from the network, convert the bytes into a bitmap and then insert the bitmap into an imageview, you would use the following pseudo-code:
In this tutorial you'll learn how to avoid the android out of memory error by loading large bitmap images from url in an efficient way and display them in an ImageView - Repeat to fill in others.