# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Register()方法可以注册一个监听wifi状态的广播接受者,需要用户传入一个实现抽象类的对象实现回调方法,包括监听Wifi打开和关闭,是否通过wifi连接到网络,是否连接到网络等;广播接受者接收到相应的wifi以及网络状态的广播,通过内部的判断得到一些信息,并调用抽象类的方法,用户便可根据相应方法进行操作。Unregister()是取消注册广播接受者。 还通过取得WifiManager对象实现的对wifi打开关闭的操作;通过wifiManger获取到WiFiInfo获取到当前的设备的MAC地址,接入点的BSSID,IP地址,连接的ID,WifiInfo的所有信息包等。
资源推荐
资源详情
资源评论
收起资源包目录
WifiDemo.zip (52个子文件)
WifiDemo
.project 844B
bin
AndroidManifest.xml 1KB
dexedLibs
android-support-v4-c3d9a1572806c22f82e680831ed479da.jar 395KB
WifiDemo.apk 443KB
res
crunch
drawable-hdpi
ic_launcher.png 6KB
drawable-mdpi
ic_launcher.png 3KB
drawable-xhdpi
ic_launcher.png 9KB
drawable-xxhdpi
ic_launcher.png 17KB
resources.ap_ 40KB
classes
com
example
wifidemo
R$string.class 478B
R$layout.class 409B
MainActivity.class 2KB
R$dimen.class 467B
R$drawable.class 413B
R$menu.class 394B
R.class 693B
R$style.class 437B
BuildConfig.class 349B
MainActivity$2.class 953B
R$attr.class 346B
MainActivity$3.class 1KB
MainActivity$1.class 954B
R$id.class 462B
smart
common
wifiComm
WifiUtils.class 3KB
WifiReceiver.class 3KB
WifiListener.class 745B
classes.dex 1.17MB
.settings
org.eclipse.jdt.core.prefs 177B
ic_launcher-web.png 50KB
AndroidManifest.xml 1KB
proguard-project.txt 781B
libs
android-support-v4.jar 1.13MB
src
com
example
wifidemo
MainActivity.java 2KB
smart
common
wifiComm
WifiReceiver.java 3KB
WifiUtils.java 2KB
WifiListener.java 966B
project.properties 563B
res
values
styles.xml 697B
strings.xml 225B
dimens.xml 220B
layout
activity_main.xml 1KB
drawable-ldpi
drawable-hdpi
ic_launcher.png 7KB
values-v11
styles.xml 334B
drawable-mdpi
ic_launcher.png 4KB
drawable-xhdpi
ic_launcher.png 12KB
drawable-xxhdpi
ic_launcher.png 24KB
menu
main.xml 370B
values-w820dp
dimens.xml 381B
values-v14
styles.xml 391B
.classpath 475B
gen
com
example
wifidemo
R.java 3KB
BuildConfig.java 162B
assets
共 52 条
- 1
资源评论
codinglo
- 粉丝: 6
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功