Here you can find the source of loadImageFromNetwork(String photoUrl)
public static Bitmap loadImageFromNetwork(String photoUrl)
//package com.java2s; import java.io.InputStream; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.util.Log; public class Main { public static Bitmap loadImageFromNetwork(String photoUrl) { Bitmap bm = null;//ww w.j av a2 s .c o m try { InputStream in = new java.net.URL(photoUrl).openStream(); bm = BitmapFactory.decodeStream(in); } catch (Exception e) { Log.e("Error", e.getMessage()); e.printStackTrace(); } return bm; } }