سؤال

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.

هل كانت مفيدة؟

المحلول

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!

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top