暂停Android的下载管理器 [英] Pause android DownloadManager

查看:245
本文介绍了暂停Android的下载管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的申请,我从服务器下载电影。其中有些是非常大(4GB或以上)。我试图实现自己的下载管理器作为一种服务,它是不退出好。在某些设备上应用刚刚撞向本身没有任何通知和整体下载似乎过于缓慢。

In my application I'm downloading movies from the server. Some of them are very big (4gb or more). I tried to implement my own download manager as a service and it was not quit good. On some devices the app just crashes into itself without any notice, and overall the download seems to be too slowly.

所以,我想用Android的默认下载管理器,但我唯一的问题是,我不能暂停/恢复它。

So, I wanted to use Android's default DownloadManager, but my only problem is that I can't pause/resume it.

有没有实施的方法?

推荐答案

从我可以通过查看源$ C ​​$ C所知,这是不支持(虽然下载管理器将自身的失败后和系统重新启动自动重试,等等)。

From what I can tell by looking at the source code, this isn't supported (although the DownloadManager will automatically retry after failures on its own and after system reboots, etc.).

如果你还没有看过<一个href=\"http://stackoverflow.com/questions/11297298/downloadmanager-with-manually-pause-and-resume\">this或已经,它看起来像有一些有用的信息有关于如何自己与这些能力实现自己的服务。

If you haven't seen this or this already, it looks like there is some useful information there on how to implement your own service yourself with these capabilities.

这篇关于暂停Android的下载管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆