Simple Location API/src/rimx/location/simplelocation/SimpleLocationProvider.java
/**
	 * Stops the current tracking session.
	 */
Stops the current tracking session.
Stops the current tracking session .
private void stopTracking(){	
		if(trackingInProgress){
			locationProviderReference = null; 
			log("Stopping tracking session..");		
			if(restartTimer!=null){
				restartTimer.cancel();
				restartTimer = null;
				log("TimerTask canceled.");
			}				
			new Thread(){	
				public void run(){
					if(locationThread!=null){
						locationThread.resetProvider();			
					}
				}
			}.start();
		}
		trackingInProgress = false;
		log("Tracking session stopped");
	}
private void stopTracking ( ) { if ( trackingInProgress ) { locationProviderReference = null ; log ( "Stopping tracking session.." ) ; if ( restartTimer != null ) { restartTimer . cancel ( ) ; restartTimer = null ; log ( "TimerTask canceled." ) ; } new Thread ( ) { public void run ( ) { if ( locationThread != null ) { locationThread . resetProvider ( ) ; } } } . start ( ) ; } trackingInProgress = false ; log ( "Tracking session stopped" ) ; }
Stops the current tracking session.
Stops the current tracking session .
//null location provider reference to stop unnecessary updated to LocationListener
 // Doing this in a separate thread. If the provider is currently acquiring a location a reset may block.
