1.关闭wifi ,调用Api [DllImport("Wlanapi.dll", SetLastError = true)] public static extern uint WlanDisconnect(IntPtr hClientHandle, ref Guid pInterfaceGuid, IntPtr pReserved); 2.获取当前连接wifi 网卡句柄 The WlanOpenHandle function opens a connection to the se
public class WifiAutoConnectManager { private static final String TAG = WifiAutoConnectManager.class.getSimpleName(); WifiManager wifiManager; // 定义几种加密方式,一种是WEP,一种是WPA,还有没有密码的情况 public enum WifiCipherType { WIFICIPHER_WEP, WIFICIPHER_WPA, WIFICIPHER