Download multiple files in background in Android

Posted by Addev on Stack Overflow See other posts from Stack Overflow or by Addev
Published on 2012-09-10T20:53:12Z Indexed on 2012/09/10 21:38 UTC
Read the original article Hit count: 180

Filed under:
|
|

Basically I'm trying to make a little app for watching offline content. So there's a moment where the user selects to download the contents (and the app should download about 300 small files and images).

I'd like to show the user how does the process go if he enters the proper activity. Showing a list of all the files, telling what has been already downloaded, in progress or waiting for download.

My problem is that I really don't know what approach to take for achieve this. Since the download should last until finished I imagine the solution is an Service, but whats best? an IntentService, a Bound Service or an Standard Service calling a startService() for each download? And how can I keep my objects updated for displaying them later? should I use a database or objects in memory?

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about android