Code example for WifiManager

Methods: disableNetworkdisconnect

0
	/** 
	 * �Ͽ���ǰ���ӵ����� 
	 */ 
	public void disconnectWifi() { 
		int netId = getNetworkId();
		mWifiManager.disableNetwork(netId);
		mWifiManager.disconnect();
		mWifiInfo = null;
	} 
 
	/** 
	 * ��鵱ǰ����״̬ 
	 *  
	 * @return String 
	 */ 
	public void checkNetWorkState() { 
		if (mWifiInfo != null) {
			Log.i(TAG, "��������");
		} else { 
			Log.i(TAG, "�����ѶϿ�");
Connect your IDE to all the code out there  Get Codota for Java