我看很多程序都是调用系统自带的下载功能,点击下载后在通知栏出现一个下载进度条,请问这个是怎么实现的?
首先说明,我知道如何起新线程下载,如何自己实现service下载,包括2.3系统后downloadmanage类。我现在想知道的是2.2系统下如何实现,是不是有哪种intent action之类的
------解决方案--------------------
估计调用浏览器,打开URL是可以的
------解决方案--------------------
- Java code
Uri uri = Uri.parse("http://xxx.xxx.xxx/xxx.apk"); Intent intent =new Intent(Intent.ACTION_VIEW, uri);startActivity(intent);
------解决方案--------------------