Overview
Fetch is a simple, powerful, customizable file download manager library for Android.
Features
- Simple and easy to use API.
- Continuous downloading in the background.
- Concurrent downloading support.
- Ability to pause and resume downloads.
- Set the priority of a download.
- Network-specific downloading support.
- Ability to retry failed downloads.
- Ability to group downloads.
- Easy progress and status tracking.
- Download remaining time reporting (ETA).
- Download speed reporting.
- Save and Retrieve download information anytime.
- Notification Support.
- Storage Access Framework, Content Provider and URI support.
- And more…
Prerequisites
If you are saving downloads outside of your application’s sandbox, you will need to add the following storage permissions to your application’s manifest. For Android SDK version 23(M) and above, you will also need to explicitly request these permissions from the user.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
Also, as you are going to use Internet to download files. We need to add the Internet access permissions in the Manifest.
<uses-permission android:name="android.permission.INTERNET"/>
How to use Fetch
Using Fetch is easy! Just add the following to your project’s build.gradle
file. In newer Android Studio projects add this to settings.gradle
Follow page below…