On Jan 13, 4:48 pm, Kevin Duffey <[email protected]> wrote:
> I would say your idea of downloading all files at the same time is flawed...
> one at a time would be better.

So you vote for option one.

> I'd queue up the files to be downloaded and
> download one at a time.

That's what I'm doing now.

> I'd imagine that even 1 download may fill
> up the 3G bandwidth.. depending on signal strength and speed of the server
> you are downloading from.

That part I'm not sure. Downloads vary from about 10K in size, so they
could certainly be latency limited ( on wifi or 3G) instead of
bandwidth limited, which is why the question comes up.
Maybe not all 20 at once, but maybe two or three at a time would use
the bandwidth more effectively. Then again, maybe not.

>Also, have you considered what happens if all 20 downloads get halted right in 
>the middle?

That's bad. Another scenario is that user interaction makes some or
all of the files no longer needed.

I think I will need at least one more thread, though. The background
thread is not very responsive to the cancel situation, since it does
block for some time on a download.

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

Reply via email to