You can create one Android/DefaultHttpClient per thread.
I use a ThreadLocal for this, storing one instance of an HttpClient for each 
thread. This means that none of the HttpClient instances will have 
thread-safety issues and the number of HttpClients being created is limited 
(never more than the number of threads in the AsyncTask's thread-pool,and 
this number is very limited).


-- 
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