Android: best way to load images in background
<p>For my custom list view, I'm using AsyncTask for the web service call and it is working fine.
My List view have a left side image, title, descriptions. the service will return a list of (url, title, desc). </p>

<p>And in my adapter, i'm loading the images using the following code:</p>

<pre>
httpClient = new DefaultHttpClient(); 
HttpGet request = new HttpGet(url);         
response = httpClient.execute(request);
InputStream is = response.getEntity().getContent();
Drawable drawable = Drawable.createFromStream(is, "src");
imgView.setImageDrawable(drawable);
</pre>

<p>But I'm not able to see the list view until all the images loaded, I know i'm blocking the UI thread, can anybody suggest the best way to do this without UI blocking.</p>

<p>Thanks,
Venkat Papana</p>
