GithubHelp home page GithubHelp logo

Add support for resuming about ffupdater HOT 2 CLOSED

tobi823 avatar tobi823 commented on July 30, 2024
Add support for resuming

from ffupdater.

Comments (2)

Tobi823 avatar Tobi823 commented on July 30, 2024 1

I'm using the android.app.DownloadManager (https://developer.android.com/reference/android/app/DownloadManager) for downloading.
This interface only allows the enqueuing / cancellation of downloads. There is no way to pause/resume downloads manually.
But downloads should automatically be resumed:

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.

On my Android emulator, the download is resumed most of the time when I

  • enable and disable the airplane mode
  • disable WiFi and fallback to mobile internet.

I don't know why your downloads or the downloads on my emulator don't always resumed. I guess resuming it's a complex process.

I'm afraid there's nothing I can do. I have to use the android.app.DownloadManager because it is well supported by all Android smartphones, well integrated into the operating system, doesn't required additional dependencies and this "fail to resume download" error occurs only rarely.

from ffupdater.

Sepero avatar Sepero commented on July 30, 2024

Resuming a download is a very simple process, but most generic downloaders are just sloppy. If it's worth your trouble, you could include a small curl binary to download the files instead. If it's too much work, then don't bother with it. It's not a big deal. I appreciate you displaying the download links in FFUpdater.

When I was having network issues, I copied the links from FFUpdater, and pasted them into a real downloader. Then the downloads completed, and I just installed from the apks

from ffupdater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.