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).
And in my adapter, i'm loading the images using the following code:
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);
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.
Thanks, Venkat Papana