Code example for WifiManager.MulticastLock

Methods: isHeld, release

0
	@Override 
	public void onDestroy() { 
		super.onDestroy(); 
		ControlCenter.closeUpConnections(); 
 
		if (mcLock.isHeld()) {
			mcLock.release();
		} 
		Toast.makeText(this, "Activity destroied",	Toast.LENGTH_LONG).show();
	} 
 
}