android多线程断点下载,源码+实例

上传者: 38592256 | 上传时间: 2022-05-17 14:42:47 | 文件大小: 83KB | 文件类型: RAR
摘要:Java源码,Android源码,多线程,断点下载  android多线程断点下载,通过本Android下载实例,可了解到以下知识技巧:实时得到文件下载的长度,设置获取实体数据的范围、获取文件已下载文件长度、原始文件长度、线程数、本地保存文件、缓存各线程下载的长度、每条线程下载的长度、获取线程数、获取文件大孝更新指定线程最后下载的位置、构建文件下载器、保存记录文件、根据响应获取文件大孝监听下载数量的变化,如果不需要了解实时下载的数量,可以设置为null、循环判断是否下载完毕等基础知识。
  这里请注意,对于UI控件的更新只能由主线程(UI线程)负责,如果在非UI线程更新UI控件,更新的结

文件下载

资源详情

[{"title":"( 36 个子文件 83KB ) android多线程断点下载,源码+实例","children":[{"title":"okbase.net","children":[{"title":"android多线程断点下载","children":[{"title":"smart_breakpointDownload","children":[{"title":".project <span style='color:#111;'> 860B </span>","children":null,"spread":false},{"title":"proguard.cfg <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"smart","children":[{"title":"db","children":[{"title":"DBOpenHelper.java <span style='color:#111;'> 828B </span>","children":null,"spread":false},{"title":"FileService.java <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false}],"spread":true},{"title":"impl","children":[{"title":"SmartDownloadThread.java <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"SmartFileDownloader.java <span style='color:#111;'> 7.53KB </span>","children":null,"spread":false},{"title":"SmartDownloadProgressListener.java <span style='color:#111;'> 157B </span>","children":null,"spread":false}],"spread":true},{"title":"activoty","children":[{"title":"download","children":[{"title":"SmartDownloadActivity.java <span style='color:#111;'> 3.11KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"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":"drawable-mdpi","children":[{"title":"icon.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"main.xml <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 449B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"gen","children":[{"title":"com","children":[{"title":"smart","children":[{"title":"activoty","children":[{"title":"download","children":[{"title":"R.java <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"default.properties <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 11.04KB </span>","children":null,"spread":false},{"title":"com","children":[{"title":"smart","children":[{"title":"db","children":[{"title":"DBOpenHelper.class <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"FileService.class <span style='color:#111;'> 3.45KB </span>","children":null,"spread":false}],"spread":false},{"title":"impl","children":[{"title":"SmartDownloadThread.class <span style='color:#111;'> 3.65KB </span>","children":null,"spread":false},{"title":"SmartDownloadProgressListener.class <span style='color:#111;'> 186B </span>","children":null,"spread":false},{"title":"SmartFileDownloader.class <span style='color:#111;'> 8.48KB </span>","children":null,"spread":false}],"spread":false},{"title":"activoty","children":[{"title":"download","children":[{"title":"R$layout.class <span style='color:#111;'> 421B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 427B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 367B </span>","children":null,"spread":false},{"title":"SmartDownloadActivity.class <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"SmartDownloadActivity$2.class <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 504B </span>","children":null,"spread":false},{"title":"SmartDownloadActivity$3.class <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"SmartDownloadActivity$1.class <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 594B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 607B </span>","children":null,"spread":false},{"title":"SmartDownloadActivity$3$1.class <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"classes.dex <span style='color:#111;'> 17.34KB </span>","children":null,"spread":false},{"title":"smart_breakpointDownload.apk <span style='color:#111;'> 21.49KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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