I have created a location listener by 'LocationManager' with this code:
mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 100, 100, mListenerNetwork);
and the listener:
LocationListener mListenerNetwork = new LocationListener() {
public void onLocationChanged(Location location) {
// New Location by LocationManager
}
public void onProviderDisabled(String provider) { }
public void onProviderEnabled(String provider) { }
public void onStatusChanged(String provider, int status, Bundle extras) { }
}
And I have a listener by google maps API:
getMap().setOnMyLocationChangeListener(this);
and the listener:
public void onMyLocationChange(Location location) {
// New Location by GoogleMaps
}
When I debugged the application, I have noticed that the locations in the listeners are different! More than that, the accuracy of the location are very different. The accuracy in the Google Maps is half of the accuracy in LocationManager (less is better).
Why the locations are so different?