Android 下载 Zip 到 SD 卡?
我有一个 100 meg 的 zip 文件,需要在应用程序首次启动时下载。它需要解压到SD卡(400兆)。
我不想让它接触手机的存储空间,因为许多手机的手机存储空间都没有 400 兆。
这可以做到吗(有人有例子吗?)
谢谢, 伊安
I have a 100 meg zip file that I need to download when the app first starts. It needs to unzip to the SD card (400 meg).
I'd rather not have to have it touch the phone's storage as many phones won't have 400 meg free on the phone's storage.
Can this be done (any one have an example?)
Thanks,
ian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以做到。您到底在寻找什么?下载例程或如何进行检查?
这是下载方法,您应该在 AsyncTask 左右运行它。
您可能还想检查手机是否至少连接到 WiFi(和 3G);
否则当人们需要通过慢速电话网络下载 100m 时,他们会生气。
Can be done. What exactly are you looking for? The download routine or how to do the check?
Here's the download method, you should run it in an AsyncTask or so.
You also might want to check whether the phone is at least connected to WiFi (and 3G);
otherwise people will get mad when they need to download 100m via a slow phone network.