Android DownloadManager not working when redirected

天大地大妈咪最大 提交于 2019-12-03 21:48:09

I've found in Download Manager sources (line 500):

3xx: redirects (not used by the download manager)

It's not supported, yet.

In my current project, downloads are made in two steps:

  1. Get Amazon url from our own server via oAuth2
  2. Enqueue DownloadManager with the Amazon url.

If you don't like the two step process, I don't, then take a look at RoboSpice project, it has similar philosophy as DownloadManager.

Bernd S

Just answering a sub-part of this question. The reason why you get the reason as a "placeholder" String is because the reason column is an integer, not a String. See Android DownloadManager: Download fails, but COLUMN_REASON only returns “placeholder”.

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