public void onLocationChanged(Location location){
  if (Cfg.DEBUG) {
    Check.log(TAG + " (onLocationChanged): new location: " + location);
  }
synchronized (listeners) {
    gotValidPosition=true;
    for (    GPSLocationListener listener : listeners) {
      if (Cfg.DEBUG) {
        Check.log(TAG + " (onLocationChanged): send location to: " + listener);
      }
      listener.onLocationChanged(location);
    }
    listeners.clear();
  }
}

public void onLocationChanged ( Location location ) { if ( Cfg . DEBUG ) { Check . log ( TAG + " (onLocationChanged): new location: " + location ) ; } synchronized ( listeners ) { gotValidPosition = true ; for ( GPSLocationListener listener : listeners ) { if ( Cfg . DEBUG ) { Check . log ( TAG + " (onLocationChanged): send location to: " + listener ) ; } listener . onLocationChanged ( location ) ; } listeners . clear ( ) ; } }
this method is called by the gpslocator the first time it fixes
