I am still confused why downloading multiple files at once is any better
than downloading one file at a time? Is there a reason you must download all
of them at once? I don't think they would get downloaded any faster doing
them all at once. Unless you are building a bitorrent client for Android...
then maybe you have to allow the app to download multiple files at once.

On Wed, Jan 13, 2010 at 6:59 PM, Nathan <[email protected]> wrote:

>
>
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
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