android wifi工具类(包括静态IP设置)

上传者: yhjsspz | 上传时间: 2021-07-01 16:39:19 | 文件大小: 642KB | 文件类型: RAR
整理android的wifi相关的工具类,整理成项目可运行。 包括wifi的打开、关闭、连接、切换、监听、静态IP设置、网关、DNS。

文件下载

资源详情

[{"title":"( 35 个子文件 642KB ) android wifi工具类(包括静态IP设置)","children":[{"title":"wifi","children":[{"title":"bin","children":[{"title":"res","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"test","children":[{"title":"wifi","children":[{"title":"BuildConfig.class <span style='color:#111;'> 335B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 410B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 392B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 325B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 539B </span>","children":null,"spread":false},{"title":"activity","children":[{"title":"MainActivity.class <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"MainActivity$2.class <span style='color:#111;'> 1014B </span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"WifiReceiver.class <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"R$string.class <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"helper","children":[{"title":"WifiUtils.class <span style='color:#111;'> 12.86KB </span>","children":null,"spread":false}],"spread":false},{"title":"R$style.class <span style='color:#111;'> 416B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.44KB </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":"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;'> 74B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 697B </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_activity.xml <span style='color:#111;'> 618B </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":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"test","children":[{"title":"wifi","children":[{"title":"BuildConfig.java <span style='color:#111;'> 155B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"test","children":[{"title":"wifi","children":[{"title":"activity","children":[{"title":"MainActivity.java <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"WifiReceiver.java <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"helper","children":[{"title":"WifiUtils.java <span style='color:#111;'> 16.26KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 840B </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.44KB </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 612.87KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • zhk790930 :
    非常好,绝对可以用,大于v14的Android是利用反射实现的,在5.1下可用,不知道后面的版本能不能用了。
    2019-05-09
  • hu1223uy1 :
    项目可运行
    2019-02-18
  • qq_24688461 :
    不能用,在执行getField(wifiConf, &quot;linkProperties&quot;)时出现异常java.lang.NoSuchFieldException: linkProper
    2016-10-11
  • okevin1234567 :
    还可以,虽然有时候统计不太准确,但基本可用。
    2015-12-17
  • baidu_27447199 :
    东西很实用的e.....
    2015-06-18

免责申明

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