Code example for WifiManager

Methods: addNetworkenableNetwork

0
		return (mWifiInfo == null) ? "NULL" : mWifiInfo.toString();
	} 
	//����һ�����粢���� 
	public void AddNetwork(WifiConfiguration wcg)
	{ 
		int wcgID = mWifiManager.addNetwork(wcg); 
		mWifiManager.enableNetwork(wcgID, true); 
	} 
	//�Ͽ�ָ��ID������ 
	public void DisconnectWifi(int netId)
	{ 
		mWifiManager.disableNetwork(netId);
		mWifiManager.disconnect();
	} 
}