All Projects → ixuea → Androiddownloader

ixuea / Androiddownloader

Licence: apache-2.0
An powerful download library for Android.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Androiddownloader

android-downloader
An powerful download library for Android.
Stars: ✭ 375 (+30.66%)
Mutual labels:  downloader, multi-threading, downloadmanager
Downloader
Downloader for android with pause, resume, cancel, queue options
Stars: ✭ 40 (-86.06%)
Mutual labels:  downloader, downloadmanager
Mzdownloadmanager
This download manager uses NSURLSession api to download files. It can download multiple files at a time. It can download large files if app is in background. It can resume downloads if app was quit.
Stars: ✭ 1,061 (+269.69%)
Mutual labels:  downloader, downloadmanager
Docker Jdownloader
JDownloader 2 Docker Image (Multiarch) - Passed 40M Downloads
Stars: ✭ 85 (-70.38%)
Mutual labels:  downloader, downloadmanager
Fast Android Networking
🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀
Stars: ✭ 5,346 (+1762.72%)
Mutual labels:  downloader, downloadmanager
Rxdownloader
Demo of Downloading Songs/Images through Android Download Manager using RxJava2
Stars: ✭ 166 (-42.16%)
Mutual labels:  downloader, downloadmanager
Fetch
The best file downloader library for Android
Stars: ✭ 1,124 (+291.64%)
Mutual labels:  downloader, downloadmanager
uget
(WIP) Universal Getter of remote files
Stars: ✭ 46 (-83.97%)
Mutual labels:  downloader, downloadmanager
Pyload
The free and open-source Download Manager written in pure Python
Stars: ✭ 2,393 (+733.8%)
Mutual labels:  downloader, downloadmanager
DownloadManagerPlus
Using faster and easier than Android Download Manager
Stars: ✭ 80 (-72.13%)
Mutual labels:  downloader, downloadmanager
VandaDownloader
强大的下载特性支持,更加清晰的特性设计。
Stars: ✭ 25 (-91.29%)
Mutual labels:  downloader, downloadmanager
dl
Command-line file downloader tool
Stars: ✭ 39 (-86.41%)
Mutual labels:  downloader, downloadmanager
kinetics-downloader
Simple tool to download videos from kinetics dataset.
Stars: ✭ 28 (-90.24%)
Mutual labels:  downloader
Alpha Zero Gomoku
A Multi-threaded Implementation of AlphaZero
Stars: ✭ 264 (-8.01%)
Mutual labels:  multi-threading
video-downloader
Video Downloader for Facebook.
Stars: ✭ 63 (-78.05%)
Mutual labels:  downloader
libjwdpmi
C++20 development framework for 32-bit DOS applications
Stars: ✭ 32 (-88.85%)
Mutual labels:  multi-threading
Chrome Avgle Helper
👏 A Chrome extension for Avgle and other interesting video sites. Downloader inside
Stars: ✭ 276 (-3.83%)
Mutual labels:  downloader
Prdownloader
PRDownloader - A file downloader library for Android with pause and resume support
Stars: ✭ 2,947 (+926.83%)
Mutual labels:  downloader
twitch-downloader
Download Twitch VODs and Clips
Stars: ✭ 37 (-87.11%)
Mutual labels:  downloader
github-release-downloader
CLI tool to download all release assets from a git repository
Stars: ✭ 26 (-90.94%)
Mutual labels:  downloader

AndroidDownloader

English | 中文

License

Report an issue, iOS and macOS use CocoaDownloader.

Android Downloader is a open source multithread and mulitask downloadInfo framework for Android.

Try out the sample application on the Apk file.

Download

You can download a jar from GitHub's releases page.

Or use Gradle:

Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Add the dependency:

dependencies {
  compile 'com.ixuea:AndroidDownloader:latest'
}

For info on using the bleeding edge, see the Snapshots wiki page.

ProGuard

If your project uses ProGuard, you need to add the following configuration to your project proguard-rules.pro file

-keep public class * implements com.ixuea.android.downloader.db.DownloadDBController

How do I use Android Downloader?

For more information on GitHub wiki and Javadocs.

0.Add network network permissions()

<uses-permission android:name="android.permission.INTERNET" />

1.Configuration download service

<service android:name="com.ixuea.android.downloader.DownloadService">
  <intent-filter>
    <action android:name="com.ixuea.android.downloader.DOWNLOAD_SERVICE" />
  </intent-filter>
</service>

2.Create a DownloadManager instance

downloadManager = DownloadService.getDownloadManager(context.getApplicationContext());

Simple use as follows

3.Download a file

//create download info set download uri and save path.
final DownloadInfo downloadInfo = new DownloadInfo.Builder().setUrl("http://example.com/a.apk")
    .setPath("/sdcard/a.apk")
    .build();

//set download callback.
downloadInfo.setDownloadListener(new DownloadListener() {

  @Override
  public void onStart() {
    tv_download_info.setText("Prepare downloading");
  }

  @Override
  public void onWaited() {
    tv_download_info.setText("Waiting");
    bt_download_button.setText("Pause");
  }

  @Override
  public void onPaused() {
    bt_download_button.setText("Continue");
    tv_download_info.setText("Paused");
  }

  @Override
  public void onDownloading(long progress, long size) {
    tv_download_info
        .setText(FileUtil.formatFileSize(progress) + "/" + FileUtil
            .formatFileSize(size));
    bt_download_button.setText("Pause");
  }

  @Override
  public void onRemoved() {
    bt_download_button.setText("Download");
    tv_download_info.setText("");
    downloadInfo = null;
  }

  @Override
  public void onDownloadSuccess() {
    bt_download_button.setText("Delete");
    tv_download_info.setText("Download success");
  }

  @Override
  public void onDownloadFailed(DownloadException e) {
    e.printStackTrace();
    tv_download_info.setText("Download fail:" + e.getMessage());
  }
});

//submit download info to download manager.
downloadManager.download(downloadInfo);

Compatibility

  • Android SDK: Android Downloader requires a minimum API level of 10.

Build

Samples

Follow the steps in the Build section to setup the project and then:

./gradlew :samples:run

You may also find precompiled APKs on the releases page.

More

See the example code.

Author

Smile - @ixueadev on GitHub, Email is [email protected], See more ixuea(http://www.ixuea.com)

Android development QQ group: 702321063.

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].