Android-HttpDownloadManager
Android-HttpDownloadManager copied to clipboard
An useful and effective http/https download manager for Android, support breakpoint downloading.
感谢作者 现有有一个问题,我想下载文件到自定义的目录,但是我看代码发现,我在调用DownloadManager.add()的时候,会默认将DownloadRequest中的rootDownloadDir目录设置为 context.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS), 然后我也看了DownloadManager,没有暴露DownloadRequestQueue的add方法, 也没有办法手动去add一个任务,有没有什么办法能自定义一个路径呢
OOM
先感谢大佬的库 下载过程中 会出现oom `FATAL EXCEPTION: DownloadDispatcher Process: PID: 25975 java.lang.OutOfMemoryError: Failed to allocate a 97436688 byte allocation with 25165824 free bytes and 89MB until OOM, target footprint 334048856, growth limit...
下载的文件名错误
1、有时会出现文件名的后缀为:.down 2、有时会出现文件名格式:“正确文件名”;filename*=utf-8''正确文件名 3、有时会出现文件名格式:“文件名(注:不带后缀)”;filename*=utf-8''文件名(注:不带后缀)
