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.
__
Because my Java knowledge are very very very weak my attempts to call
new Android API functions consists of GOogle search engine which shows
Me some code examples from various WEB pages. And after that, I do my
best to adapt those samples so it would be compatible with FPCJVM
Android target. I