@Override
    public void onLocationChanged(Location location) {
        mLocation = location;
        if (mLocation != null) {
            // Bug report: cached GeoPoint is being returned as the first value.
            // Wait for the 2nd value to be returned, which is hopefully not cached?
            ++mLocationCount;
            InfoLogger.geolog("GeoPointActivity: " + System.currentTimeMillis() +
                    " onLocationChanged(" + mLocationCount + ") lat: " +
                    mLocation.getLatitude() + " long: " +
                    mLocation.getLongitude() + " acc: " +
                    mLocation.getAccuracy());
            if (mLocationCount > 1) {
                mLocationDialog.setMessage(getString(R.string.location_provider_accuracy,
                        mLocation.getProvider(), truncateDouble(mLocation.getAccuracy())));
                if (mLocation.getAccuracy() <= mLocationAccuracy) {
                    returnLocation();
                }
            }
        } else {
            InfoLogger.geolog("GeoPointActivity: " + System.currentTimeMillis() +
                    " onLocationChanged(" + mLocationCount + ") null location");
        }
    }
@Override
    public void onLocationChanged(Location location) {
        mLocation = location;
        if (mLocation != null) {
           
           
            ++mLocationCount;
            InfoLogger.geolog("GeoPointActivity: " + System.currentTimeMillis() +
                    " onLocationChanged(" + mLocationCount + ") lat: " +
                    mLocation.getLatitude() + " long: " +
                    mLocation.getLongitude() + " acc: " +
                    mLocation.getAccuracy());
            if (mLocationCount > 1) {
                mLocationDialog.setMessage(getString(R.string.location_provider_accuracy,
                        mLocation.getProvider(), truncateDouble(mLocation.getAccuracy())));
                if (mLocation.getAccuracy() <= mLocationAccuracy) {
                    returnLocation();
                }
            }
        } else {
            InfoLogger.geolog("GeoPointActivity: " + System.currentTimeMillis() +
                    " onLocationChanged(" + mLocationCount + ") null location");
        }
    }
@override public void onlocationchanged(location location) { mlocation = location; if (mlocation != null) { ++mlocationcount; infologger.geolog("geopointactivity: " + system.currenttimemillis() + " onlocationchanged(" + mlocationcount + ") lat: " + mlocation.getlatitude() + " long: " + mlocation.getlongitude() + " acc: " + mlocation.getaccuracy()); if (mlocationcount > 1) { mlocationdialog.setmessage(getstring(r.string.location_provider_accuracy, mlocation.getprovider(), truncatedouble(mlocation.getaccuracy()))); if (mlocation.getaccuracy() <= mlocationaccuracy) { returnlocation(); } } } else { infologger.geolog("geopointactivity: " + system.currenttimemillis() + " onlocationchanged(" + mlocationcount + ") null location"); } }