Skip to content
Jacksgong edited this page May 25, 2017 · 16 revisions
  • Get Tasks List? "unbind" Activity? Manage Tasks?: Please ref here
  • Set frequence of the FileDownloadListener#progress callback: Please ref here中文-1中文-2中文-3
  • Start downloading automatically when network reconnected from disconnected state: Please ref here
  • How to import FileDownloader to the eclipse?: Please ref here
  • Dynamic Url for the same task? : please follow this issue: #224

1.假如 下载进程在下载过程中被异常kill了,程序会默认自动恢复进程吗,还是需要手动写某些代码才能开启

会自动重启的。更多的可以参看: 这里,还有这里

2.在启动下载的时候,怎么判断下载服务已经启动,我想加个优化,假如下载服务未启动,则先启动下载服务再下载

在启动下载的时候,如果下载服务没有启动。默认会进入等待队列,然后自动启动服务,服务启动后,会自动开始任务。

  • 获取服务连接状态可以是: FileDownloader#isServiceConnected
  • 进行一些与服务连接有关的调用,可以通过以下方法辅助: FileDownloader#insureServiceBindFileDownloader#insureServiceBindAsyncFileDownloader#bindService(Runnable).
  1. 不执行下载就无法获取sofar和total?

参考这里