Simple Location API/src/rimx/location/simplelocation/SimpleLocationProvider.java
/**
	 * Triggers an immediate retry by restarting the current tracking session. Note that {@link SimpleLocationProvider} implements an optimal logic
	 * to decide when to retry for location fixes if location fixes fail or are not available at a given time (see {@link #setRetryFactor(int)}). 
	 * However, if an application chooses to trigger an immediate retry at will, it can do so by simply calling this method. 
	 * @throws IllegalStateException If no tracking session exists. Essentially you cannot restart a tracking session that was never started. See {@link #addSimpleLocationListener(SimpleLocationListener, int)}
	 * 
	 */
Triggers an immediate retry by restarting the current tracking session. Note that  SimpleLocationProvider implements an optimal logic
to decide when to retry for location fixes if location fixes fail or are not available at a given time ).
However, if an application chooses to trigger an immediate retry at will, it can do so by simply calling this method.
@throws IllegalStateException If no tracking session exists. Essentially you cannot restart a tracking session that was never started.
Triggers an immediate retry by restarting the current tracking session . Note that SimpleLocationProvider implements an optimal logic to decide when to retry for location fixes if location fixes fail or are not available at a given time ) . However if an application chooses to trigger an immediate retry at will it can do so by simply calling this method . @throws IllegalStateException If no tracking session exists . Essentially you cannot restart a tracking session that was never started .
public void restart() throws IllegalStateException{	
		if(simpleLocationListener!=null){
			log("Restarting SimpleLocationProvider..");
			retryAttempt = 0;
			lastValidFixTime = System.currentTimeMillis();
			currentOptimalModeIsGeolocation = true;		
			switchToGPS = false;
			startTracking();
		} else{
			throw new IllegalStateException("No existing tracking session found.");
		}
	}
public void restart ( ) throws IllegalStateException { if ( simpleLocationListener != null ) { log ( "Restarting SimpleLocationProvider.." ) ; retryAttempt = 0 ; lastValidFixTime = System . currentTimeMillis ( ) ; currentOptimalModeIsGeolocation = true ; switchToGPS = false ; startTracking ( ) ; } else { throw new IllegalStateException ( "No existing tracking session found." ) ; } }
Triggers an immediate retry by restarting the current tracking session.
Triggers an immediate retry by restarting the current tracking session .