So I have found out my bug. Why WIFIlock did not work as expected. I have put wrong number. So The right lines are: WifiManager := ANWWifiManager(getSystemService(ACContext.WIFI_SERVICE)); WifiManager.createWifiLock (3,'WIFI_MODE_FULL'); Wakelock number is correct.