Skip to content Skip to sidebar Skip to footer

OnLocationChanged Just Called Once Using Network Provider

i have a problem using location listener and location manager. I'm using class that i found on the Internet public class MyLocationListener implements LocationListener { public

Solution 1:

LocationManager.NETWORK_PROVIDER tries to locate the device using cell network towers and Wifi networks around. If neither of them change, then you won't receive any update.

Did you ask for updates and roam around (you might need to take a little walk around your place) ?

With GPS, as the signal strengthens and get more and more accurate, you will receive updates even if you don't move.


Post a Comment for "OnLocationChanged Just Called Once Using Network Provider"