DownloadManager sends STATUS_SUCCESSFUL for failed download

拜拜、爱过 提交于 2019-12-01 17:01:19

DownloadManager is buggy and doesn't work correctly. This bug was filed with Google a while back:

https://code.google.com/p/android/issues/detail?id=18462

For single file download, you could workaround this by specifying a unique directory to download to specifically for this purpose, and just take whatever you get in that directory upon DownloadManager.STATUS_SUCCESSFUL.
For multi-file downloads, I can't think of a workaround at the moment, unless you have the ability to rename files at the source.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!