title: Android Location manager - wait location
body: <p>I have a code in the onCreate() </p>
  
  <pre><code>LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
  locationManager.requestLocationUpdates(  
  LocationManager.GPS_PROVIDER, 500, 1, new LocationListener (){
               @Override
               public void onLocationChanged(Location loc) {
                                 CameraUpdate center = CameraUpdateFactory.newLatLng(new LatLng(loc.getLatitude(), loc.getLongitude()));
                                 myMap.moveCamera(center);  
               }
  });
  </code></pre>
  
  <p>This occurs when the changes the user's position, but I want it to happen once.
  I want to wait until the new location is received to move to a new location map, and then not move the map to the user</p>