How do I download multiple files in a queue one by one! I\'m using this as a sample code, since. I would be passing the URLs to download in Strings from my local DB dynamic
A good way of queuing up requests to be handled asynchronously, one at a time, is with an IntentService
. If you have an IntentService
which reads URLs from the supplied Intent
, then all you have to do is create an Intent
for each file you want to download, and send each Intent
to the service,
Here is a good tutorial.
EDIT: I see you've already referred to a similar question, where the answer recommends IntentService
. So, maybe you should use an IntentService
. :)