//枭燚java实例_开关wifi 枭燚扣扣1612108278
/.
abc()
需要申请的权限
android.permission.ACCESS_WIFI_STATE
android.permission.CHANGE_WIFI_STATE
android.permission.WAKE_LOCK
./
java(wmr, activity, "android.app.Activity.getSystemService", "String", "wifi")
java(iswed, wmr, "android.net.wifi.WifiManager.isWifiEnabled")
//isweb true为开启 false为关闭
f(iswed)
{
java(c, wmr, "android.net.wifi.WifiManager.setWifiEnabled", "boolean", false)
}
else
{
java(c, wmr, "android.net.wifi.WifiManager.setWifiEnabled", "boolean", true)
}