search

Home  >  Q&A  >  body text

android downloadmanager 如何设置同时可下载文件数?

DownloadManager 有没有现成的方法,还是要自己实现?

阿神阿神2772 days ago592

reply all(4)I'll reply

  • 阿神

    阿神2017-04-17 18:02:37

    I haven’t found any relevant configuration similar to what you mentioned. Downloadmanager is a system-level service and can only submit tasks. Task scheduling is determined by the system. Different mobile phone manufacturers may modify this service and the number of tasks that can be downloaded at the same time will be different. . DownloadManager only provides a convenient download method, but to be flexible, multi-style, and customizable, developers still have to implement the download process module themselves.

    reply
    0
  • 迷茫

    迷茫2017-04-17 18:02:37

    Use Xutils to download, you can set the download quantity

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 18:02:37

    DownloadManager currently does not provide an interface for concurrent downloads. As for whether it can support concurrent downloads, this has something to do with the manufacturer. Two open source projects that support concurrent downloads:

    • github: Aspsine/MultiThreadDownload

    • github: lingochamp/FileDownloader

    p.s. The traffic fee is so expensive, why do you have to struggle with the traffic? [Facepalm]

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 18:02:37

    Use a third-party download library, which has powerful functions and free control.

    reply
    0
  • Cancelreply