NetSpeedTest:Android测试网速的APP

上传者: 42123237 | 上传时间: 2022-11-10 16:07:35 | 文件大小: 2.4MB | 文件类型: ZIP
NetSpeedTest Android测试网速的APP 首先这个APP是学习网上的开源代码,吸收和优化得到的,所以当然也是开源给大家一起学习的啦 优化的地方有:禁止测试途中再开新线程测试;测试中途退出关闭线程避免后台继续下载;补充连接方式的获取 测网速用到的思路就是有个Info结构体,里面有当前网速speed,已经下载的字节数:hadfinishBytes,总共要下载的字节数:totalBytes 然后开2个线程,线程A利用java.net的URL类去下载一个文件,例如一张几M大的图片,并且一直修改Info结构体的内容 线程B就每1秒读一次结构体的speed来更新UI,思路就这样。

文件下载

资源详情

[{"title":"( 32 个子文件 2.4MB ) NetSpeedTest:Android测试网速的APP","children":[{"title":"NetSpeedTest-master","children":[{"title":"res","children":[{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 324B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 363B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 381B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_needle.png <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"bg_line.png <span style='color:#111;'> 93B </span>","children":null,"spread":false},{"title":"bg_speed.png <span style='color:#111;'> 556B </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false},{"title":"bg.png <span style='color:#111;'> 471.52KB </span>","children":null,"spread":false},{"title":"bg_tester.png <span style='color:#111;'> 24.15KB </span>","children":null,"spread":false},{"title":"ic_heart.png <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 222B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 213B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"main.xml <span style='color:#111;'> 4.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 373B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"Screenshot_2015-02-15-17-05-51.png <span style='color:#111;'> 614.23KB </span>","children":null,"spread":false},{"title":"Screenshot_2015-02-15-17-06-07.png <span style='color:#111;'> 612.26KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"netspeedtest","children":[{"title":"Info.java <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 5.14KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 815B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 466B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 904B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 836B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":".gitattributes <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 740.94KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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