wifi打开获取变慢的解决demo

上传者: u011974987 | 上传时间: 2019-12-21 21:24:04 | 文件大小: 1.99MB | 文件类型: rar
当前wifi未打开时,去打开wifi 直接获取wifi信息会有延迟,导致界面好大一会儿才出来数据,为此单独写个demo,看了官网API 看log信息最终解决了,所以发出来与大家分享。

文件下载

资源详情

[{"title":"( 51 个子文件 1.99MB ) wifi打开获取变慢的解决demo","children":[{"title":"TestWifiDemo","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 1017.98KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Xu.apk <span style='color:#111;'> 385.11KB </span>","children":null,"spread":false},{"title":"jarlist.cache <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-199943700bf080c8479951cbcd8dba67.jar <span style='color:#111;'> 339.40KB </span>","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"xu","children":[{"title":"MainActivity.class <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"MainActivity$3.class <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"MainActivity$2.class <span style='color:#111;'> 749B </span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 391B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 512B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"DateUtils.class <span style='color:#111;'> 7.30KB </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 449B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 328B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 376B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 633B </span>","children":null,"spread":false},{"title":"MainActivity$4.class <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"MainActivity$5.class <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 460B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 419B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 40.87KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 334B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 364B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </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;'> 219B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 220B </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":"activity_main.xml <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 381B </span>","children":null,"spread":false}],"spread":true}],"spread":false},{"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":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"xu","children":[{"title":"BuildConfig.java <span style='color:#111;'> 156B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"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":"example","children":[{"title":"xu","children":[{"title":"DateUtils.java <span style='color:#111;'> 9.86KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 3.78KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 848B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 972.29KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • lpcforever :
    代码很好,正是我需要的
    2019-04-13
  • bjiao27 :
    太挫了,就是看了评论下的,大家都是咋评的哦,两个java文件,一个是转换时间格式的,一个activity就三个按钮,一个按钮还没有事件,另外两个就是开启关闭wifi开关。简直吐血哇,抢分哦
    2018-04-09
  • js_dada :
    不错不错,可以用
    2018-04-04
  • shijing123123 :
    不错,能用,可以看一看
    2018-01-16
  • zmyzyc1988 :
    代码很好,正是我需要的
    2017-12-27

免责申明

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