一个支持暂停下载的断点续传Android

上传者: 38731553 | 上传时间: 2022-05-17 14:39:12 | 文件大小: 62KB | 文件类型: RAR
Android断点续传及网格文件下载的Java实例源代码,支持在暂停下载后继续下载,现在很多下载软件普遍都使用的功能,在Android手机软件中应用断点续传技术也是很有必要的。通过这个Android源码可学习一下如何基于Java代码实现断点续传的应用,比如如何设置当前线程下载的起点、终点,设置断点续传的开始位置,设置User-Agent ,httpURLConnection.setRequestProperty("User-Agent","NetFox"); 设置断点续传的开始位置,httpURLConnection.setRequestProperty("RANGE","bytes=4096

文件下载

资源详情

[{"title":"( 28 个子文件 62KB ) 一个支持暂停下载的断点续传Android","children":[{"title":"okbase.net","children":[{"title":"test_asynctask","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 14.09KB </span>","children":null,"spread":false},{"title":"com","children":[{"title":"ldci","children":[{"title":"asynctask","children":[{"title":"Async.class <span style='color:#111;'> 6.11KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 427B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 550B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 400B </span>","children":null,"spread":false},{"title":"AsyncTaskActivity.class <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"AsyncTaskActivity$ListAdapter.class <span style='color:#111;'> 5.88KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 340B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 531B </span>","children":null,"spread":false},{"title":"Utils.class <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 427B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 11.58KB </span>","children":null,"spread":false},{"title":"test_asynctask.apk <span style='color:#111;'> 19.81KB </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"icon.png <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"icon.png <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"icon.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"list_item.xml <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"main.xml <span style='color:#111;'> 373B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"default.properties <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"ldci","children":[{"title":"asynctask","children":[{"title":"R.java <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard.cfg <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"ldci","children":[{"title":"asynctask","children":[{"title":"Async.java <span style='color:#111;'> 5.05KB </span>","children":null,"spread":false},{"title":"AsyncTaskActivity.java <span style='color:#111;'> 8.17KB </span>","children":null,"spread":false},{"title":"Utils.java <span style='color:#111;'> 520B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 850B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 793B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明