Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

断点续传下载器JarvisDownloader #291

Closed
arestory opened this issue Jul 10, 2018 · 0 comments
Closed

断点续传下载器JarvisDownloader #291

arestory opened this issue Jul 10, 2018 · 0 comments

Comments

@arestory
Copy link

arestory commented Jul 10, 2018

项目推荐

  • 项目名称:

  • 项目地址:
    https://github.com/yuwenque/JarvisDownloader

  • 项目语言:
    java

  • 项目描述:
    JarvisDownloader是一个支持断点续传的文件下载框架

  • 推荐理由:
    1.支持断点续传下载
    2.支持自定义文件夹路径、文件名。
    3.支持自定义SQLiteOpenHelper,用于保存下载进度等
    4.下载进度回调时自动切换到UI线程,方便更新UI。
    5.自动与activity绑定生命周期,无需手动释放
    6.activity不可见时,不会更新UI,可见时会自动恢复状态

  1. 自定义请求头
  2. 支持查询下载历史列表
  • 示例代码:
    Jarvis.with(this)
    .withUrl("http://pic1.win4000.com/wallpaper/2017-10-11/59dde2bca944f.jpg")
    .allowBackgroundDownload(true)
    .threadCount(3)
    .filePath(Environment.getExternalStorageDirectory() + File.separator + "Jarvis")
    .fileName("test.jpg")
    .refreshTime(1000)
    .setDownloadListener(listener).download();
@arestory arestory changed the title 断电续传下载器JarvisDownloader 断点续传下载器JarvisDownloader Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants