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. 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.
Builder this. HIGH ; request. ALL ; request. Copyright C Tonyo Francis. Licensed under the Apache License, Version 2. See the License for the specific language governing permissions and limitations under the License. About The best file downloader library for Android www. Releases 89 tags. Packages 0 No packages published. You signed in with another tab or window. Different downloaded file size compare to other download method Hi, thanks for this awesome library!
The download link is a little complicated because it has some protection, so sorry for that. Add support for groupProgress Hi tonyofrancis! Best regards, Daniell Algar bug enhancement help wanted. I also could not leave the code that way since when a user reenter the activity onCreate ; fails with an exception FetchException Namespace already exist for this instance of Fetch, did you forget to close So I am stuck with this What can solve this?
Builder context. As migrate from 1. Thanks, bug. Getting CursorWindowAllocationException randomly. Hello tonyofrancis I am using fetch version 3. Please take a look and let us know further to eliminate this crash. Custom Time Out Context on my server it takes 20 seconds to generate a document, after generating it is returned, taking into account this scenario I need to increase the library's default timeout, in my code it works, but the file cannot be opened.
Add an option to send request body with post method Add an option to send request body with post method. ALL ; fetch. Thanks to badrazizi OnCompleted not called in some instances. Fixed " A resource failed to call close" errors. Thanks to thib-rdr Fixed rapid pause and resume issues. Thanks to jpvs Breaking change. Reverted OkHttp client to 3.
Thanks to badrazizi Fixed issues with sample app Big thanks to everyone who contributed and open issues. Happy Holidays. Stay Safe! Source code tar.
Thanks to everyone who contributed! It is now easier to create custom fetch databases. Note: New methods were added and old methods may have been updated for the FetchDatabaseManager interface. FetchNotificationManger interface improvements. It is now easier to control notifications. Note: New methods were added and old methods may have been updated for the FetchNotificationManger interface. See java docs for details. Fetch updateRequest method will now call fetch listener onDeleted download method when a request is being updated Added new Fetch method getAllGroupIds callback that returns all group id's being managed by Fetch.
Added new Fetch method getDownloadsByTag tag, callback that returns all download's being managed by Fetch with the specified tag. Special thanks to alvince and DHosseiny for providing fixes for this release. Fixed network on main thread error. Improved network connection checks. Files are now pre allocated on local storage on request enqueue. This prevents waste of data.
On by default. Added new field segment to Downloader. Special thanks to Alex Starchenko for submitting the fixes and improvements Source code tar. See Java docs. Added new fields redirected and redirectedUrl on Downloader.
ServerRequest class. Observers: Introducing FetchObserver. Database: Fetch now allows you to provide your own database manager to manage downloads. Download: Added new fields on the Download objects.
Fixed issued in the downloader where an out of memory error would occur. See Java doc for details. Special thanks to Marcin Adamczewski for submitting PR.
Fetch logging is now disabled by default and can be enabled with the FetchConfiguration method. This response object contains the HttpCode and other http related information.
This field is only provided when an error occurs and it is related to the Http response. Fixed EnqueueAction. Fixed an EnqueueAction. Download, Request, DownloadBlock and other data classes now extend Serializable. Okhttp and HttpUrlConnection clients now add a default Referer header to each request if one is not provided.
Default Referer is the host of the url passed in the request. Behavior change and Updates for ActiveDownloads method on Fetch. The ActiveDownload method now correctly return true if there are active downloads. Downloads with a queued or Downloading status. Added new awaitFinish methods on Fetch. The awaitFinish method blocks the current non UI thread until Fetch has completed all enqueued downloads.
The awaitFinishTimeout method takes in a time in milliseconds to release the hold if Fetch has not completed all downloads in the allocated timeframe. Passing 0 to the awaitFinishTimeout method will hold the thread indefinitely Never releasing.
Recommend to use the awaitFinishTimeout method inside Android Workers and release the task when a certain amount of time has passed. See Java docs for details. Now returns Void correctly. ServerRequest : R? This method allows you to specify settings on the client before executing the request. Fixed resume bug with Parallel downloader Source code tar.
Fixed an issue where the priority queue backoff would not work correctly. Fixed an issue where request with a file uri would not resume correctly. Fixed an issue where the Fetch database would crash on large group calls. Fixed an issue where completed download notifications using the DefaultNotificationManager would show the progress bar when a download completed. New Fetch now supports notifications via the FetchNotificationManager interface.
See DefaultFetchNotificationManager class and sample code on usage. See sample code and DefaultStorageResolver class for usage. New constructor added for Request object. Request url, Uri New get method added on Request object. Builder class. See java Docs. New class added DefaultFetchNotificationManager. New interface added StorageResolver. See javaDocs. New class added DefaultStorageResolver. Bug Fixes Improvements and bug fixes to Parallel and Sequential file downloader. Fixed an issue where the onCompleted method would not be called for downloads with unknown content length.
Website moved? New icon? Suggest an update and help us stay up-to-date. You will get the top apps with 29 different data attributes including: Package name Short description Market category Launch time and last update time Estimated total and recent downloads Ratings recent, all time, and counts per rating Developer contact details Google Play URL Check the documentation for more details about the data attributes and the data format of the file.
The sample file download button gives you a sample file which only contains the first 5 apps. You can download the file instantly after paying with PayPal. You will also get an email with an invoice and download link that you can use in the next 24 hours.
Sign up. Log in. Google Play stats. Fetch is a simple, powerful, customizable file download manager library for Android. Number of apps. We provide free statistics on which apps and games are using these libraries, and a full list of apps can be purchased for a small fee.
0コメント