문제

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