Simple Location API/src/rimx/location/simplelocation/SimpleLocationProvider.java
/**
	 * Starts a tracking session in a LocationThread.
	 */
Starts a tracking session in a LocationThread.
Starts a tracking session in a LocationThread .
private void startTracking(){
		log("Starting tracking session..");
		if(trackingInProgress){
			log("Tracking session exists. Stopping..");
			stopTracking();			
		}		
		if(switchToGPS || !isModeAvailable(MODE_GEOLOCATION)){
			currentOptimalModeIsGeolocation = false;
		}		
		setupCriteria();
		trackingInProgress = true;		
		locationThread = new SimpleLocationThread(criteria, trackingInterval, this, this);
		locationThread.start();		
		log("New tracking session started..");
		simpleLocationListener.locationEvent(SimpleLocationListener.EVENT_ACQUIRING_LOCATION, new Long(retryAttempt));	
	}
private void startTracking ( ) { log ( "Starting tracking session.." ) ; if ( trackingInProgress ) { log ( "Tracking session exists. Stopping.." ) ; stopTracking ( ) ; } if ( switchToGPS || ! isModeAvailable ( MODE_GEOLOCATION ) ) { currentOptimalModeIsGeolocation = false ; } setupCriteria ( ) ; trackingInProgress = true ; locationThread = new SimpleLocationThread ( criteria , trackingInterval , this , this ) ; locationThread . start ( ) ; log ( "New tracking session started.." ) ; simpleLocationListener . locationEvent ( SimpleLocationListener . EVENT_ACQUIRING_LOCATION , new Long ( retryAttempt ) ) ; }
Starts a tracking session in a LocationThread.
Starts a tracking session in a LocationThread .