Code example for LocationManager

Methods: removeGpsStatusListenerremoveUpdates

0
	@Override 
	public void onDestroy() { 
		super.onDestroy(); 
		Log.i(TAG, "Service destroying");
 
		locationManager.removeUpdates(TaxiLocatorService.this);
		locationManager.removeGpsStatusListener(taxiGpsStatusListener);
 
		timer.cancel();
		timer = null;
	} 
 
	private void toast(String message) {
		Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT)
				.show();
	} 
 
	private TimerTask updateTask = new TimerTask() {
 
		@Override 
		public void run() {