1

Android offer a DownloadManager from API 9 onwards and documentation says

The download manager will conduct the download in the background, taking care of HTTP interactions and retrying downloads after failures or across connectivity changes and system reboots.

Around 4% of devices (04-Apr-2013) run Android 2.2 (API 8) so is there any library or backport of DownloadManager which can retrying downloads after failures or across connectivity changes and system reboots for Android 2.2.

Gaurav Agarwal
  • 18,754
  • 29
  • 105
  • 166
  • There comes a point in time at which you really need to give up on old OSes to move things forward. Only 4% of devices run Android 2.2. How much time is it going to take to support it? How many additional sales/downloads will you need to get it to break even? I doubt its worth your time. – Gabe Sechan Apr 03 '13 at 20:46
  • Agreed. Exploring the community if some work has been done. – Gaurav Agarwal Apr 03 '13 at 20:50

1 Answers1

0

Unfortunately NO. For Android 2.2 and below, you will have to code up your own download manager and handle all the things yourself. In fact many applications supporting FroYo have done a good job with this, so no need to re-invent the wheel. Just take pointers from SO and get coding!

Royston Pinto
  • 6,681
  • 2
  • 28
  • 46
  • All I can see on SO is something like this http://stackoverflow.com/questions/3028306/download-a-file-with-android-and-showing-the-progress-in-a-progressdialog. These samples dont even come close of retrying in ConnectTimeout leave alone connectivity failure or system reboot. – Gaurav Agarwal Apr 03 '13 at 21:34
  • Well, you need to dig up a bit more. Google a bit, there are good working samples which I have used myself too. – Royston Pinto Apr 03 '13 at 21:43