/** will pause updates from the {@link LocationManager} to the {@link SimpleLocationManager} */ public boolean pauseLocationManagerUpdates() { // its important to use instance here and not getInstance()! if (gpslistener != null) { Log.i(LOG_TAG, "Pausing position updates!"); getLocationManager().removeUpdates(gpslistener); gpslistener = null; } if (stepListener != null) { Log.i(LOG_TAG, "Pausing step updates!"); stepManager.unRegisterStepListener(stepListener); stepListener = null; stepManager = null; return true; } return false; }