Tuesday, July 8, 2014

Load Image from URL

Use the following code to display the picture in ImageView,
URL url = new URL("http://www.vijaynetwork.com/vijay_top_logo.jpg");
Bitmap bmp = BitmapFactory.decodeStream(url.openConnection().getInputStream());
imageView.setImageBitmap(bmp);

No comments:

Post a Comment