文件名称:Wifi
介绍说明--下载内容均来自于网络,请自行研究使用
在Android中对Wifi操作,android本身提供了一些有用的包,在android.net.wifi包下面。简单介绍一下:
大致可以分为四个主要的类ScanResult,wifiConfiguration,WifiInfo,WifiManager
(1)ScanResult,主要是通过wifi 硬件的扫描来获取一些周边的wifi 热点的信息。
(2)wifiConfiguration 在我们连通一个wifi 接入点的时候,需要获取到的一些信息。大家可以跟我们有线的设备进行对比一下。
(3)WifiInfo 在我们的wifi 已经连通了以后,可以通过这个类获得一些已经连通的wifi 连接的信息获取当前链接的信息,这里信息就比较简单了
(4)wifiManager 这个不用说,就是用来管理我们的wifi 连接,这里已经定义好了一些类,可以供我们使用。这里来说相对复杂,里面的内容比较多,但是通过字面意思,我们还是可以获得很多相关的信息。这个类里面预先定义了许多常量,我们可以直接使用,不用再次创建。
-Operate on Wifi in Android , android itself provides some useful package, android.net.wifi package below . A brief introduction:
Can be divided into four main classes ScanResult, wifiConfiguration, WifiInfo, WifiManager
(1) ScanResult, mainly through wifi hardware scan to get some information about the surrounding wifi hotspot .
(2) wifiConfiguration in our connectivity when a wifi access point , you need to get some information . We can tell our wired devices compare .
(3) WifiInfo have in our wifi connectivity after , you can get some of this class have been connected wifi connection information for the current link information , where information is relatively simple
(4) wifiManager this goes without saying , is used to manage our wifi connection , where some classes have been defined , can be for our use. Here is relatively complex , which more content , but through the literal meaning , we can still get a lot of relevant information. This class is a lot of pre-defined constan
大致可以分为四个主要的类ScanResult,wifiConfiguration,WifiInfo,WifiManager
(1)ScanResult,主要是通过wifi 硬件的扫描来获取一些周边的wifi 热点的信息。
(2)wifiConfiguration 在我们连通一个wifi 接入点的时候,需要获取到的一些信息。大家可以跟我们有线的设备进行对比一下。
(3)WifiInfo 在我们的wifi 已经连通了以后,可以通过这个类获得一些已经连通的wifi 连接的信息获取当前链接的信息,这里信息就比较简单了
(4)wifiManager 这个不用说,就是用来管理我们的wifi 连接,这里已经定义好了一些类,可以供我们使用。这里来说相对复杂,里面的内容比较多,但是通过字面意思,我们还是可以获得很多相关的信息。这个类里面预先定义了许多常量,我们可以直接使用,不用再次创建。
-Operate on Wifi in Android , android itself provides some useful package, android.net.wifi package below . A brief introduction:
Can be divided into four main classes ScanResult, wifiConfiguration, WifiInfo, WifiManager
(1) ScanResult, mainly through wifi hardware scan to get some information about the surrounding wifi hotspot .
(2) wifiConfiguration in our connectivity when a wifi access point , you need to get some information . We can tell our wired devices compare .
(3) WifiInfo have in our wifi connectivity after , you can get some of this class have been connected wifi connection information for the current link information , where information is relatively simple
(4) wifiManager this goes without saying , is used to manage our wifi connection , where some classes have been defined , can be for our use. Here is relatively complex , which more content , but through the literal meaning , we can still get a lot of relevant information. This class is a lot of pre-defined constan
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Wifi\.classpath
....\.project
....\AndroidManifest.xml
....\bin\classes.dex
....\...\org\sunchao\Main.class
....\...\...\.......\R$attr.class
....\...\...\.......\R$drawable.class
....\...\...\.......\R$id.class
....\...\...\.......\R$layout.class
....\...\...\.......\R$string.class
....\...\...\.......\R.class
....\...\...\.......\WifiAdmin.class
....\...\resources.ap_
....\...\Wifi.apk
....\default.properties
....\gen\org\sunchao\R.java
....\proguard.cfg
....\res\drawable-hdpi\icon.png
....\...\.........ldpi\icon.png
....\...\.........mdpi\icon.png
....\...\layout\main.xml
....\...\values\strings.xml
....\src\org\sunchao\Main.java
....\...\...\.......\WifiAdmin.java
....\bin\org\sunchao
....\gen\org\sunchao
....\src\org\sunchao
....\bin\org
....\gen\org
....\res\drawable-hdpi
....\...\drawable-ldpi
....\...\drawable-mdpi
....\...\layout
....\...\values
....\src\org
....\assets
....\bin
....\gen
....\res
....\src
Wifi