Code example for HttpGet

0
			thingInfo.setThumbnailBitmap(ref.get());
		} 
	} 
	 
    private InputStream fetch(String urlString) throws MalformedURLException, IOException {
    	HttpGet request = new HttpGet(urlString);
    	HttpResponse response = mClient.execute(request);
    	return response.getEntity().getContent();
    } 
     
	private Bitmap readBitmapFromNetwork( String url ) {
		if (url == null)
			return null; 
		 
		InputStream is = null;
		BufferedInputStream bis = null;
		Bitmap bmp = null;
		try { 
			// http://blog.donnfelker.com/2010/04/29/android-odd-error-in-defaulthttpclient/ 
			if (!url.startsWith("http://") && !url.startsWith("https://"))
				url = "http://" + url;