user898366
user898366

Reputation: 425

Does Android DownloadManager support resume broken downloads

We know that it had android.app.DownloadManager from android 2.3. While I want to know does DownloadManager support resume broken downloads and some example if possible.

Upvotes: 0

Views: 3241

Answers (2)

Dagang Wei
Dagang Wei

Reputation: 26548

DownloadManager in Android 2.3 has resume broken downloads feature. I got it from android source code DownloadThread.java:

/** * Prepare the destination file to receive data. If the file already exists, we'll set up * appropriately for resumption. */ private void setupDestinationFile(State state, InnerState innerState)

Upvotes: 0

Nikolay Elenkov
Nikolay Elenkov

Reputation: 52966

Third sentence in the docs: '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.' How hard was that to read? What sort of an example are you looking for?

Upvotes: 2

Related Questions