getLastKnownLocation () всегда возвращает одно и то же местоположение

пытаюсь получить местоположение от gps / netwrok лучшим поставщиком, но всегда это 's возвращают то же самое местоположение, также я могу видеть, что на карте Google есть знак в моем правильном местоположении. пожалуйста, кто-нибудь может сказать мне, что яя делаю неправильно?

Моя деятельность:

 public class MainMenu2 extends Activity implements LocationListener, OnClickListener

на моем сайте у меня есть:

 if(isGooglePlay()){
        setContentView(R.layout.menu_2);
        setUpMapIfNeeded();
    }

Метод isGooglePlay:

 private boolean isGooglePlay() { // looks if googlemaps is available

    int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
    if(status == ConnectionResult.SUCCESS){
        return true;
    }
    else{
        ((Dialog) GooglePlayServicesUtil.getErrorDialog(status, this, 10)).show();
        //Toast.makeText(this, "Google Play is not available", Toast.LENGTH_SHORT).show();
        return(false);
    }

}//isGooglePlay

Метод setUpMapIfNeeded:

   private void setUpMapIfNeeded() {
// Do a null check to confirm that we have not already instantiated the map.
if (mMap == null) {
    mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.menu_map))
                        .getMap();
    // Check if we were successful in obtaining the map.
    if (mMap != null) {
        // The Map is verified. It is now safe to manipulate the map.
        mMap.setMyLocationEnabled(true);

        locationManager = (LocationManager) this.getSystemService(LOCATION_SERVICE);
        Criteria criteria = new Criteria(); 
        criteria.setAccuracy(ACCURACY_FINE); 
        provider = locationManager.getBestProvider(criteria, true);

        if (provider == null){
            onProviderDisabled(provider);
        }
        locationManager.requestLocationUpdates(provider, 100, 1, this);
        loc = locationManager.getLastKnownLocation(provider);
            //---here the privider is "gps" but always the same location---//
        if (loc != null){
            onLocationChanged(loc);
        }
        mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL); // set Map Type
    }
}
 }//setUpMap

и переопределить методы:

 @Override
 public void onLocationChanged(Location location) {
// TODO Auto-generated method stub
LatLng latlng = new LatLng(location.getLatitude(),location.getLongitude());
mMap.moveCamera(CameraUpdateFactory.newLatLng(latlng));
mMap.animateCamera(CameraUpdateFactory.zoomTo(10));

double pLong = location.getLongitude();
double pLat = location.getLatitude();
Latstr = String.valueOf(pLong);
Lngstr = String.valueOf(pLat);
latitude = pLat;
longitude = pLong;
}

@Override
public void onProviderDisabled(String provider) {
    // TODO Auto-generated method stub
    Toast.makeText(this, "Please turn ON the GPS", Toast.LENGTH_SHORT).show();
}

@Override
public void onProviderEnabled(String provider) {
    // TODO Auto-generated method stub
}

@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
// TODO Auto-generated method stub

}

@Override
protected void onPause() {
    super.onPause();
    locationManager.removeUpdates(this);
}

@Override
protected void onResume() {
    super.onResume();
    myLatLng = new LatLng(latitude,longitude);
    CameraUpdate update = CameraUpdateFactory.newLatLngZoom(myLatLng, 15);
    mMap.animateCamera(update);
    mMap.addMarker(new MarkerOptions().position(new LatLng(latitude,longitude )).title("Find me here!"));


}

Я также пытался найти здесь проблему с Similer, но я нене получил ничего ..

Ответы на вопрос(1)

Ваш ответ на вопрос