Code example for LocationManager

Methods: removeGpsStatusListenerremoveUpdates

0
	public void stopGpsUpdates() { 
		// Detener actualizaciones del GPS 
		Log.d("HAL","GpsManager.stopGpsUpdates()");
		if (this.locationManager != null) {
			//Log.d("HAL", "    GpsManager: Removing updates"); 
			this.locationManager.removeUpdates(this.locationListener);
			//Log.d("HAL", "    GpsManager: Removed locationListener"); 
			this.locationManager.removeGpsStatusListener(this.gpsStatusListener);
			//Log.d("HAL", "    GpsManager: Removed gpsStatusListener");			 
		} 
		this.gpsSatellite = new ArrayList<GpsSatellite>();
	} 
	 
	// 
	// gpsStatusListener 
	// 
	Listener gpsStatusListener = new GpsStatus.Listener() {		
		 
		@Override 
		public void onGpsStatusChanged(int event) {