Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么只有在wifi的情况下才能下载? #5

Closed
JianJianZhang opened this issue Nov 14, 2016 · 2 comments
Closed

为什么只有在wifi的情况下才能下载? #5

JianJianZhang opened this issue Nov 14, 2016 · 2 comments

Comments

@JianJianZhang
Copy link

这个版本更新,我集成到我的项目中,发现只能在wifi下才能下载更新,使用流量不行

@zhouzl18
Copy link

req.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI);//这里改一下就可以了

2016-11-14 9:49 GMT+08:00 JianJianZhang notifications@github.com:

这个版本更新,我集成到我的项目中,发现只能在wifi下才能下载更新,使用流量不行


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#5, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AIcOC2cylrPII491aByUvuSVeb4kuZoJks5q974tgaJpZM4Kw4fZ
.

@chenxi0203
Copy link

chenxi0203 commented Jan 20, 2017

req.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_MOBILE
| DownloadManager.Request.NETWORK_WIFI); 改成这样也没用,还是只能在wifi下下载。测试机型乐视2,android 6.0 编译环境 sdk 23

@chiclaim chiclaim closed this as completed Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants