安卓:文件下载在后台 [英] android: file download in background

查看:136
本文介绍了安卓:文件下载在后台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想下载从互联网上,并存储在外部内存。主要的文件是它应该在后台像市场上,当点击安装它会下载APK文件。如果有人有任何想法,那么请告诉下载我

I want to download the file from internet and store in external memory.The main thing is it should be downloaded in background like market,when click on install it will download the apk file.if some one have any idea then please tell me

感谢你。

推荐答案

请的找到这个链接。它说明了如何从互联网上下载文件。你必须把这个code在一个线程。它是用于后台进程。你应该参考线程后台进程或使用的AsyncTask,它也用于后台进程。

Please find this link. It explains how to download a file from the internet. You have to put this code in a thread. It is used for the background process. You should refer to the thread for background processes or use AsyncTask, which is also used for background process.

这篇关于安卓:文件下载在后台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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