Android系统中Wifi连接网络的源代码

上传者: gouyue | 上传时间: 2021-09-21 13:54:02 | 文件大小: 50KB | 文件类型: RAR
Wifi连接网络,通过程序你将了解到定义WifiManager对象,定义WifiInfo对象,获取网络连接列表,定义一个WifiLock,打开Wifi网卡,关闭Wifi网卡,检查当前Wifi网卡状态,扫描周边网络,每次点击扫描之前清空上一次的扫描结果,开始扫描,连接指定网络,断开当前连接的网络,检查当前网络状态,得到IP地址,锁定WifiLock,解锁WifiLock,指定配置好的网络进行连接,得到MAC地址,得到接入点的BSSID,得到WifiInfo的所有信息包, 添加一个网络并连接等相关技巧。

文件下载

资源详情

[{"title":"( 24 个子文件 50KB ) Android系统中Wifi连接网络的源代码","children":[{"title":"codefans.net","children":[{"title":"Wifi","children":[{"title":".project <span style='color:#111;'> 840B </span>","children":null,"spread":false},{"title":"proguard.cfg <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"org","children":[{"title":"sunchao","children":[{"title":"WifiAdmin.java <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false},{"title":"Main.java <span style='color:#111;'> 3.26KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 991B </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;'> 2.43KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 167B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"org","children":[{"title":"sunchao","children":[{"title":"R.java <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false}],"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.15KB </span>","children":null,"spread":false},{"title":"classes.dex <span style='color:#111;'> 8.16KB </span>","children":null,"spread":false},{"title":"Wifi.apk <span style='color:#111;'> 16.76KB </span>","children":null,"spread":false},{"title":"org","children":[{"title":"sunchao","children":[{"title":"R$layout.class <span style='color:#111;'> 373B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 379B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 319B </span>","children":null,"spread":false},{"title":"Main.class <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 685B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 482B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"WifiAdmin.class <span style='color:#111;'> 5.28KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • c461478311 :
    展示的形式不太好
    2015-01-02
  • lileibmw :
    不是很有帮助
    2014-07-04
  • c_m_l :
    还行,不过有些地方感觉有bug
    2014-06-24
  • droidan :
    不是很好用
    2014-06-19
  • ximi0311 :
    参考下改了改,我的第一个android程序居然成功了~
    2014-05-19

免责申明

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