Code example for LocationManager

Methods: removeGpsStatusListenerremoveUpdates

0
	     
	  @Override 
	  public void onDestroy() { 
		  // Cancel the persistent notification. 
		  mNM.cancel(NOTIFICATION);
		  mgr.removeUpdates(gps_locationer);
		  mgr.removeUpdates(network_locationer);
		  mgr.removeGpsStatusListener(gpslistener);
	      // Tell the user we stopped. 
	      Toast.makeText(this, "local service is stopped", Toast.LENGTH_SHORT).show();
	      mu.appendLog(DEBUG_TAG, "=====tracking is stopped=====");
	  } 
	   
 
	  @Override 
	  public IBinder onBind(Intent intent) {
	      // We don't provide binding, so return null 
	      return null; 
	  } 
	   
	    /**