public boolean isCurrentlyBetter(LocationProvider provider) {
        if (this.getState() == PROVIDER_STATE_AVAILABLE
                && provider.getState() == PROVIDER_STATE_AVAILABLE) {
            if (this.getAccuracy() < provider.getAccuracy()) return true;
            else return false;
        }
        else if (provider.getState() == PROVIDER_STATE_AVAILABLE
                && this.getState() != PROVIDER_STATE_AVAILABLE) return false;
        else if (this.getState() == PROVIDER_STATE_AVAILABLE) return true;
        return false;
    }