- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我到处找这个,没找到,我正在使用 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/
我到处找这个,没找到,我正在使用 Android DownloadManager,在文件下载期间我禁用了 WIFI 和移动数据,因此没有互联网连接,下载管理器进入状态:STATUS_PAUSED 和原
我是一名优秀的程序员,十分优秀!