Skip to content Skip to sidebar Skip to footer

Wifi Getscanresults Returns An Empty List If Gps Is Off. (android 6.0.1)

i tried to explain the problem in this gif basically, this test app receives an 'RSSI_CHANGED' intent and displays the scan results on the screen. scan results are always empty un

Solution 1:

You must declare ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION. A location permission is required because Bluetooth scans can be used to gather information about the location of the user.

This information may come from the user's own devices

So you must give that permission and on the GPS for Bluetooth devices.

Solution 2:

Google, Apple, Microsoft, et al, build, maintain, and sell databases of Wi-Fi routers and their locations. By requiring you to enable location functionality when scanning nearby WiFi networks, they acquire and update these data.

Post a Comment for "Wifi Getscanresults Returns An Empty List If Gps Is Off. (android 6.0.1)"