FileDownloader 0,5,28,4,5,0,18,8 travis-ci

Multitask、Breakpoint-resume、High-concurrency、Simple to use、Single/NotSingle-process

FileDownloader

Android multi-task file download engine.

Download Build Status

中文文档

DEMO

Installation

FileDownloader is installed by adding the following dependency to your build.gradle file:

dependencies {
    compile 'com.liulishuo.filedownloader:library:1.4.3'
}

Open customize component

From now on, FileDownloader support following components to be customized by yourself:

Name Interface Default Impl
Connection FileDownloadConnection FileDownloadUrlConnection
OutputStream FileDownloadOutputStream FileDownloadRandomAccessFile
Database FileDownloadDatabase DefaultDatabaseImpl

If you want to use okhttp as your connection component, the simplest way is this repo.

How to valid it?

Just create your own DownloadMgrInitialParams.InitCustomMaker and put those customized component to it, finally init the FileDownloader with it: FileDownloader#init

Welcome PR

If you can improve the unit test for this project would be great.

  • Comments as much as possible.
  • Commit message format follow: AngularJS’s commit message convention .
  • The change of each commit as small as possible.
  • As far as possible follow the advice from Inspection by IDE(Such as ‘Inspect Code’ in Android Studio).

Usage

By default, the FileDownloadService runs on the separate process, if you want to run it on the main process, just configure on the filedownloader.properties, and you can use FileDownloadUtils.isDownloaderProcess(Context) to check whether the FileDownloadService can run on the current process.

For more readable, Moved to Wiki.

LICENSE

Copyright (c) 2015 LingoChamp Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Related Repositories

FileDownloader

FileDownloader

Multitask、Breakpoint-resume、High-concurrency、Simple to use、Single/NotSingle-process ...

FileDownloaderFinal

FileDownloaderFinal

File Download manager.基于https://github.com/lingochamp/FileDownloader 封装的下载管理 ...

FileDownloader

FileDownloader

Android下载框架,支持多用户、多任务、断点续传 ...

FileDownloaderManager

FileDownloaderManager

FileDownloader library for android ...

FileDownloader

FileDownloader

Allows you to send files to browser from Presenter. (also can be used without Nette) Allows you to log and restrict access to these files. There is also support for partial downloads and files over 4GB! ...


Top Contributors

Jacksgong

Releases

-   v1.1.0 zip tar
-   v1.0.2 zip tar
-   v1.0.1 zip tar
-   v1.0.0 zip tar
-   v0.3.5 zip tar
-   v0.3.4 zip tar
-   v0.3.3 zip tar
-   v0.3.2 zip tar
-   v0.3.1 zip tar
-   v0.3.0 zip tar
-   v0.2.9 zip tar
-   v0.2.8 zip tar
-   v0.2.7 zip tar
-   v0.2.6 zip tar
-   v0.2.5 zip tar
-   v0.2.4 zip tar
-   v0.2.3 zip tar
-   v0.2.2 zip tar
-   v0.2.1 zip tar
-   v0.2.0 zip tar
-   v0.1.9 zip tar
-   v0.1.5 zip tar
-   v0.1.4 zip tar
-   v0.1.3 zip tar
-   v0.1.2 zip tar
-   v0.1.1 zip tar
-   v0.1.0 zip tar
-   v0.0.9 zip tar
-   v0.0.8 zip tar