Android 下载管理器 PAUSED_WAITING_FOR_NETWORK 时间

标签 android android-download-manager

我到处找这个,没找到, 我正在使用 Android DownloadManager,在文件下载期间我禁用了 WIFI 和移动数据,因此没有互联网连接,下载管理器进入状态:STATUS_PAUSED 和原因:PAUSED_WAITING_FOR_NETWORK,

它要等多少分钟才​​会失败?或永久停止...? 我已经等了一个小时了,它仍然暂停并等待网络...

最佳答案

来自 android 文档:http://developer.android.com/reference/android/app/DownloadManager.html

The download manager is a system service that handles long-running HTTP downloads. Clients may request that a URI be downloaded to a particular destination file. The download manager will conduct the download in the background, taking care of HTTP interactions and retrying downloads afterfailures or across connectivity changes and system reboots.

因为它是一个系统服务,它取决于 android 内部来调用何时停止它,并且由于您的下载已经排队,它会在重新启动后再次尝试下载,直到状态为 STATUS_SUCCESSFUL。或 STATUS_FAILED。

关于Android 下载管理器 PAUSED_WAITING_FOR_NETWORK 时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20730581/

相关文章:

java - 如何获得折叠工具栏布局的最大垂直偏移

android - 如何在 RecyclerView Adapter 中使用 Activity 方法?

java - 无法获取下载路径

android - 检查文件是否存在于文件夹中或 Android 中的 sdcard 中

Android DownloadManager 不保存文件

android - 当按下 RecyclerView 内的按钮时如何下载文件?

android - 当扩展 ListActivity 然后不工作 onClickListener

android - 如何修复 seekbar-bar-thumb-centering-issues

android - DownloadManager 不将下载的文件存储在下载文件夹中

Android Button onClick 监听器错误?