On Jan 13, 4:24 pm, Mark Murphy <[email protected]> wrote: > Nathan wrote: > > Can AsyncTask be started on another thread? > > Yes. >
Good > > I also wonder, though, if the AsyncTask takes into account that each > > task might be running an HttpRequest since it is for general purpose > > threaded. I can foresee running out of HttpRequests before running out > > of threads, if there is a practical limit. > > You don't *want* many threads. Remember: this is a mobile device, not a > Web server. RAM is not on your side. > I get it. I don't want lots of threads. If the AsyncTask keeps the number of threads under control, then perhaps there won't be any problem. Now I'm back to my original question about whether there are connection limits. I'm just a bit paranoid since .NET CF would hang after two (2) connections. Yes really. So far, I've found that there are parameters called MaxTotalConnections and MaxConnectionsPerRoute on ConnectionManager. http://developer.android.com/reference/org/apache/http/conn/params/ConnManagerParams.html I wouldn't want to increase the connections above the default, and so I wouldn't want to create more threads than that. I'll try to discover what those limits are. Nathan
-- 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

