WifiManager mWifiManager=(WifiManager)getSystemService(Context.WIFI_SERVICE);
List<WifiConfiguration> mWifiConfigurations = mWifiManager.getConfiguredNetworks();
for (WifiConfiguration mWifiConfiguration : mWifiConfigurations) {
if (mWifiConfiguration.SSID.equals("\"free\"")) {
int indexSSID = mWifiManager.addNetwork(mWifiConfiguration);
boolean isConnected = mWifiManager.enableNetwork(mWifiManager.getConfiguredNetworks().get(indexSSID).networkId, false);
if(isConnected){
}
}
}
WifiManager mWifiManager=(WifiManager)getSystemService(Context.WIFI_SERVICE);
原创mb6444ed45406a4 ©著作权
文章标签 List .net 文章分类 JavaScript 前端开发
上一篇:ext 搭的一个简单框架[转]
下一篇:设置代理