android8.0以上,DownloadManager下载状态一直返回PAUSED_WAITING_TO_RETRY?或是-1
DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));/**设置漫游状态下是否可以下载*/request.setAllowedOverRoaming(false);其实这是由于setAllowedOverRoaming设置为true引起,当a...
·
DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url));
/**设置漫游状态下是否可以下载*/
request.setAllowedOverRoaming(false);
其实这是由于setAllowedOverRoaming设置为true引起,当android版本大于8.0时,设置为true可能导致下载返回PAUSED_WAITING_TO_RETRY
更多推荐
已为社区贡献15条内容
所有评论(0)