Code example for LocationManager

Methods: removeGpsStatusListenerremoveUpdates

0
		if (gpsActive)
			shutdown(); 
	} 
		 
	public void shutdown() { 
        locationManager.removeUpdates(this);
        locationManager.removeGpsStatusListener(this);
		if (watcher != null) {
			watcher.shutdown();
			watcher = null;
		} 
        listener.onLocationChanged(null, 0); // signal inactivity
        gpsActive = false;
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE