由网友(放肆的笑╮是我仅剩的骄傲)分享简介:我想实现这个下载时,可以暂停,被用户停止。我怎样才能做到这一点与下载管理器?I want to achieve that when downloading, it can be paused, stopped by user. How can I achieve this with DownloadManager?...
我想实现这个下载时,可以暂停,被用户停止。我怎样才能做到这一点与下载管理器?
I want to achieve that when downloading, it can be paused, stopped by user. How can I achieve this with DownloadManager?
推荐答案
可以的从队列中删除下载。然后你就可以重新启动它,传递范围
HTTP标头时,重新将其添加到队列(如TryTryAgain提到)。我不相信这个目前可以更容易地完成。
You can remove a download from the queue. Then you can start it up again, passing the Range
HTTP Header when re-adding it to the queue (like TryTryAgain mentioned). I don't believe this currently can be done more easily.
相关推荐
最新文章