Code example for WifiManager.WifiLock

Methods: acquire

0
		ConnectionManager.getInstance().updateConnections(false); 
	} 
 
	public void onWifiLockSettingsChanged() { 
		if (SettingsManager.connectionWifiLock()) 
			wifiLock.acquire();
		else 
			wifiLock.release();
	} 
 
	public void onWakeLockSettingsChanged() { 
		if (SettingsManager.connectionWakeLock()) 
			wakeLock.acquire();
		else 
			wakeLock.release();
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE