Multitask、MultiThread(MultiConnection)、Breakpoint-resume、High-concurrency、Simple to use、Single/NotSingle-process
2017-08-21
NoDatabaseImpl
for the case of some users need a no-database FileDownloader. Refs #727AtomicLong
instead of lock to make better efficiency on increase progressing.GiveUpException
directly when the response content-length
isn't equal to the expect content-length
calculated from range. Closes #636INSTALL_FAILED_DUPLICATE_PERMISSION
when there are more than one application using FileDownloader lib 1.5.7 or more newer since Android 5.0. This problem is raised since v1.5.7, because of we declared permission for receiving completed status broadcast more secure, now we remove it to fix this problem. Closes #6412017-06-25
broadcast.completed
in filedownloader.properties
: determine whether need posts a broadcast when a task is completed. Closes #605FileDownloadSerialQueue
. Closes #547FileDownloader#init
and add the replacer FileDownloader#setup
to let user invoke anytime before using Filedownloader
. Closes #500
- If you want to using
broadcast.completed
and receive completed broadcast, you also need to declarefiledownloader.permission.RECEIVE_STATE
permission on the manifest, and register receiver withfiledownloader.intent.action.completed
action name and please usingFileDownloadBroadcastHandler
class to parse the receivedIntent
.- Now, rather than using
FileDownloader#init
, if you want to register your own customize components for FileDownloader please invokingFileDownloader.setupOnApplicationOnCreate(application):InitCustomMaker
on theApplication#onCreate
, otherwise you just need invokeFileDownloader.setup(Context)
anytime before usingFileDownloader
.
FileDownloadQueueSet
can't handle the case of disable wifi-required. Thanks @qtstcidGenerator
). Closes #6172017-06-18
findRunningTaskIdBySameTempPath
at the same time. Closes #613IllegalArgumentException
when the response code is 206 and its ETAG is changed. Closes #612FileDownloadNetworkPolicyException
unhandled exception, when user enable wifi-required but no wifi-state. Thanks @qtstcIllegalStateException
when user upgrades from v1.4.3
or older version to v1.5.2
or newer version directly and some more conditions, more detail please move to #610IllegalStateException
when callback-flow has been finalized but occurring completed/error at the same time.error
directly when creating the parent directory failed. Closes #542416
. Closes #612