Code example for WifiManager

Methods: addNetworkenableNetwork

0
		} 
		return false; 
	} 
	 
	public void ConnectToVmvideo1() { 
		vmvideo_server_id = mWifiManager.addNetwork(wc);
		mWifiManager.enableNetwork(vmvideo_server_id, true);
	} 
 
	public void DisableVmvideo() { 
		mWifiManager.disconnect();
		mWifiManager.removeNetwork(vmvideo_server_id);
	} 
 
	/* Listen the wifi state */ 
	public class ConnectionChangeReceiver extends BroadcastReceiver {
		@Override 
		public void onReceive(Context context, Intent intent) {
			// TODO Auto-generated method stub 
			ConnectivityManager mConnectivityManager = (ConnectivityManager) context
					.getSystemService(Context.CONNECTIVITY_SERVICE);