wifi - Android WifiInfo.getRSSI providing strange results while device is asleep -


i have simple intentservice started startwakefulservice. service has loop gets rssi every 3000ms, such:

        (int i=0; i<5; i++) {         wifimanager = (wifimanager) getsystemservice(context.wifi_service);         wifiinfo wifiinfo = wifimanager.getconnectioninfo();          if (wifiinfo != null && wifimanager != null){             log.i(tag, "wifiinfo, rssi: " + wifiinfo.getrssi());         }          try {             thread.sleep(3000);         } catch (interruptedexception e) {         }     } 

while device sleeping (screen off) method wifiinfo.getrssi returns same value (example: -58) when move device around.

can me?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -