android客户端多线程下载案例(实现断点续传,包括客户端服务端,还有注释)

上传者: buluodebeidou | 上传时间: 2021-04-21 22:51:15 | 文件大小: 3.26MB | 文件类型: ZIP
android客户端多线程下载,断点续传,多线程下载,网络编程详解代码 网络搜索《Android 4.0 网络编程详解代码》中的 第5章:Android中的网络数据下载及JSON的操作 中代码不全,少了个终于的activity,现自己跑通后上传以供大家学习,包括客户端和服务端的

文件下载

资源详情

[{"title":"( 56 个子文件 3.26MB ) android客户端多线程下载案例(实现断点续传,包括客户端服务端,还有注释)","children":[{"title":"MultipleThreadContinuableDownloaderForAndroid4","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 20.36KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"MultipleThreadContinuableDownloaderForAndroid4.apk <span style='color:#111;'> 23.48KB </span>","children":null,"spread":false},{"title":"dexedLibs","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"wangjialin","children":[{"title":"internet","children":[{"title":"multipleThreadContinuableDownloaderForAndroid4","children":[{"title":"BuildConfig.class <span style='color:#111;'> 449B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 550B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 679B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"MultipleThreadContinuableDownloaderForAndroid4Activity$ButtonClickListener$DownloadTask$1.class <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false},{"title":"MultipleThreadContinuableDownloaderForAndroid4Activity.class <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false},{"title":"MultipleThreadContinuableDownloaderForAndroid4Activity$UIHander.class <span style='color:#111;'> 2.90KB </span>","children":null,"spread":false},{"title":"MultipleThreadContinuableDownloaderForAndroid4Activity$ButtonClickListener.class <span style='color:#111;'> 4.43KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 496B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 895B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 770B </span>","children":null,"spread":false},{"title":"MultipleThreadContinuableDownloaderForAndroid4Activity$ButtonClickListener$DownloadTask.class <span style='color:#111;'> 3.85KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"FileService.class <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false},{"title":"DBDemo.class <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"downloader","children":[{"title":"DownloadThread.class <span style='color:#111;'> 3.85KB </span>","children":null,"spread":false},{"title":"DownloadProgressListener.class <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"FileDownloader.class <span style='color:#111;'> 9.04KB </span>","children":null,"spread":false}],"spread":true},{"title":"DBOpenHelper.class <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 11.49KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 632B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"main.xml <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"wangjialin","children":[{"title":"internet","children":[{"title":"multipleThreadContinuableDownloaderForAndroid4","children":[{"title":"BuildConfig.java <span style='color:#111;'> 212B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard.cfg <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"wangjialin","children":[{"title":"internet","children":[{"title":"multipleThreadContinuableDownloaderForAndroid4","children":[{"title":"MultipleThreadContinuableDownloaderForAndroid4Activity.java <span style='color:#111;'> 9.02KB </span>","children":null,"spread":false}],"spread":true},{"title":"service","children":[{"title":"DBDemo.java <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"downloader","children":[{"title":"FileDownloader.java <span style='color:#111;'> 12.66KB </span>","children":null,"spread":false},{"title":"DownloadProgressListener.java <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"DownloadThread.java <span style='color:#111;'> 5.36KB </span>","children":null,"spread":false}],"spread":false},{"title":"DBOpenHelper.java <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"FileService.java <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 882B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 361B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"ServerForMultipleThreadDownloader","children":[{"title":"WebContent","children":[{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 39B </span>","children":null,"spread":false}],"spread":true},{"title":"WEB-INF","children":[{"title":"lib","children":[{"title":"servlet-api.jar <span style='color:#111;'> 194.11KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"CNNRecordingFromWangjialin.mp3 <span style='color:#111;'> 2.97MB </span>","children":null,"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'> 553B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'> 503B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 395B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":null,"spread":false},{"title":".project <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 661B </span>","children":null,"spread":false},{"title":"build","children":[{"title":"classes","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • kunzhaokun :
    客户端的代码写的不错,很有帮助。 不过服务器端的代码为啥是空的呢?
    2015-09-10
  • 卡片 :
    不错,很好用
    2015-06-14
  • 藍明 :
    新手看到这个真的很好用,而且助事业很详细
    2015-06-07
  • 紫蚺 :
    还行新手看着挺好的
    2015-03-20
  • 心安即是归处1 :
    可以使用,就是下载速度特别慢,没有我自己做的速度快
    2015-03-12
  • qq_22747191 :
    这代码到处复制,浪费分了
    2015-01-17
  • icesoldier :
    不错,可用。拿来改改就行
    2014-11-16
  • quanpengchao :
    很好的例子,可以用,谢谢。
    2014-11-08
  • maomaohang :
    不错,可供参考
    2014-10-31
  • hickey96 :
    还可以参考下!
    2014-08-28

免责申明

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