All Projects → Justson → Downloader

Justson / Downloader

Licence: apache-2.0
Powerful and flexible Android file downloader

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Downloader

Github Files Fetcher
Download a specific folder or file from a GitHub repo through command line
Stars: ✭ 73 (-62.18%)
Mutual labels:  downloader, download, file
Docker Jdownloader
JDownloader 2 Docker Image (Multiarch) - Passed 40M Downloads
Stars: ✭ 85 (-55.96%)
Mutual labels:  downloader, download
Nodestream
Storage-agnostic streaming library for binary data transfers
Stars: ✭ 70 (-63.73%)
Mutual labels:  download, file
Filedownloader
Multitask、MultiThread(MultiConnection)、Breakpoint-resume、High-concurrency、Simple to use、Single/NotSingle-process
Stars: ✭ 10,408 (+5292.75%)
Mutual labels:  downloader, download
Downgit
Create GitHub Resource Download Link
Stars: ✭ 936 (+384.97%)
Mutual labels:  download, file
Flickr Set Get
A simple command line app to download photos from a flickr set
Stars: ✭ 57 (-70.47%)
Mutual labels:  downloader, download
File
Select files. Download files. Work with file content.
Stars: ✭ 96 (-50.26%)
Mutual labels:  download, file
Digger
Digger is a lightweight download framework that requires only one line of code to complete the file download task
Stars: ✭ 521 (+169.95%)
Mutual labels:  download, file
Fgdownloader
用于断点下载、任务队列、上传进度、下载进度
Stars: ✭ 143 (-25.91%)
Mutual labels:  downloader, download
Java Youtube Downloader
Simple, almost zero-dependency java parser for retrieving youtube video metadata
Stars: ✭ 160 (-17.1%)
Mutual labels:  downloader, download
Pyload
The free and open-source Download Manager written in pure Python
Stars: ✭ 2,393 (+1139.9%)
Mutual labels:  downloader, download
Aria2 Pro Docker
Aria2 Pro | A perfect Aria2 Docker image | 更好用的 Aria2 Docker 容器镜像
Stars: ✭ 802 (+315.54%)
Mutual labels:  downloader, download
Pget
The fastest file download client
Stars: ✭ 724 (+275.13%)
Mutual labels:  downloader, download
Fast Android Networking
🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀
Stars: ✭ 5,346 (+2669.95%)
Mutual labels:  downloader, download
Youget
YouGet - YouTube Video/Playlist Downloader/Cutter - MP3 Converter
Stars: ✭ 169 (-12.44%)
Mutual labels:  downloader, download
Aria2.sh
Aria2 一键安装管理脚本 增强版
Stars: ✭ 1,276 (+561.14%)
Mutual labels:  downloader, download
Update4j
Create your own auto-update framework
Stars: ✭ 497 (+157.51%)
Mutual labels:  downloader, download
Downthemall
The DownThemAll! WebExtension
Stars: ✭ 512 (+165.28%)
Mutual labels:  downloader, download
4chan Downloader
Python3 script to continuously download all images/webms of multiple 4chan thread simultaneously - without installation
Stars: ✭ 136 (-29.53%)
Mutual labels:  downloader, download
Macos Downloader
Command line tool for downloading macOS installers and beta updates
Stars: ✭ 162 (-16.06%)
Mutual labels:  downloader, download

Downloader

Downloader 是一个非常轻巧以及功能强大快速下载库,只有50KB 左右大小,对于大多数应用来说,性价比最高的一个下载库, 相比系统提供DownloadManager、FileDownloader 来说,Downloader 提供的API更简单、轻量且Downloader提供同步下载,系统通知进度等功能。

预览图

特性

  • 支持串行,多线程并行下载
  • 支持断点续传
  • 支持分块传输
  • 支持系统通知进度
  • 支持同步,异步下载
  • 支持自义定路径
  • 支持添加请求头
  • 支持超时配置
  • 提供简易的Api
  • 支持重定向下载
  • 支持进度回调
  • 重试次数配置
  • 支持下载APK文件完成后自动安装
  • 支持暂停,恢复下载等操作

下载

allprojects {
	repositories {
			...
			maven { url 'https://jitpack.io' }
	}
}
implementation 'com.download.library:Downloader:4.1.4'

例子

同步

File file = DownloadImpl.getInstance()
				.with(getApplicationContext())
				.url("http://shouji.360tpcdn.com/170918/93d1695d87df5a0c0002058afc0361f1/com.ss.android.article.news_636.apk")
				.get();

异步

DownloadImpl.getInstance()
                .with(getApplicationContext())
                .url("http://shouji.360tpcdn.com/170918/f7aa8587561e4031553316ada312ab38/com.tencent.qqlive_13049.apk")
                .enqueue();

进度监听

DownloadImpl.getInstance()
		.with(getApplicationContext())
		.target(new File(this.getExternalCacheDir(), "com.ss.android.article.news_636.apk"))
		.setUniquePath(false)
		.setForceDownload(true)
.url("http://shouji.360tpcdn.com/170918/93d1695d87df5a0c0002058afc0361f1/com.ss.android.article.news_636.apk")
		.enqueue(new DownloadListenerAdapter() {
					@Override
					public void onStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength, Extra extra) {
						super.onStart(url, userAgent, contentDisposition, mimetype, contentLength, extra);
					}

					@Override
					public void onProgress(String url, long downloaded, long length, long usedTime) {
						super.onProgress(url, downloaded, length, usedTime);
						Log.i(TAG, " progress:" + downloaded + " url:" + url);
					}

					@Override
					public boolean onResult(Throwable throwable, Uri path, String url, Extra extra) {
						Log.i(TAG, " path:" + path + " url:" + url + " length:" + new File(path.getPath()).length());
						return super.onResult(throwable, path, url, extra);
					}
		});

默认的文件目录

/data/data/com.download.sample(packagename)/cache/download/private/filename.jpg
/data/data/com.download.sample(packagename)/cache/download/public/filename.jpg
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].