测试时出错
老师,用真机测试时,eclipse 调试提示:open whitelist file error!这问题出现在哪呢?
老师,用真机测试时,eclipse 调试提示:open whitelist file error!这问题出现在哪呢?
2015-11-06
改用这种方式直接调用系统的下载器
DownloadManager downloadManager = (DownloadManager) MainActivity.this.getSystemService(DOWNLOAD_SERVICE);
Uri uri = Uri.parse(url);
DownloadManager.Request request = new DownloadManager.Request(uri);
long download_id = downloadManager.enqueue(request);
//返回值download_id是一个比较重要的参数,主要用来查询
举报