Code example for URL

Methods: openStream

0
 *  
 * 
 */ 
public class UrlImageLoader { 
	public static Bitmap loadBitmap(String s) throws IOException {
		URL url = new URL(s);
		return loadBitmap(url);
	} 
 
	public static Bitmap loadBitmap(URL url) throws IOException {
		Bitmap b = BitmapFactory.decodeStream(new PatchInputStream(url.openStream()));
		return b;
	} 
}