Hey...I had a similar issue that I just fixed today, and this information 
might help.

I had code I was using all over the place that would be downloading data and 
images with a single HttpClient and everything was fine.  When I moved this 
code over to a project that was downloading a bunch of images in a row, 
sometimes it would hit a point where it would block almost exactly as you're 
describing.  I did a ton of troubleshooting with my HttpClient instance, the 
HttpParams, moving from AsyncTask to a single background thread running in 
serial, etc.

I took a step back and started using a single AndroidHttpClient per-request 
and closing it after I was done downloading the stream and decoding the 
bitmap.  No more blocking.  The issue is that the HttpClient will clean 
itself up, but sometimes not in time and the next request would come in and 
cause a deadlock.

If you're not explicitly cleaning up the HttpClient 
(AndroidHttpClient.close), give it a try.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to