Simple Location API/src/rimx/location/simplelocation/SimpleLocationProvider.java
/**
	 * Adds a {@link SimpleLocationListener} implementation to this {@link SimpleLocationProvider} and starts a tracking session. 
	 * Once added, the implementation can expect to get location fixes at the specified interval via 
	 * {@link SimpleLocationListener#locationEvent(int, Object)}. NOTE: The first fix may take longer than the interval.
	 *  
	 * @param listener	A {@link SimpleLocationListener} implementation.
	 * @param interval	An interval in seconds - describing how often the implementation requires a fix. -1 represents the default interval value of 5.
	 * @throws	IllegalArgumentException	If listener is null.
	 */
Adds a  SimpleLocationListener implementation to this  SimpleLocationProvider and starts a tracking session.
Once added, the implementation can expect to get location fixes at the specified interval via
SimpleLocationListener#locationEvent(int, Object). NOTE: The first fix may take longer than the interval.

@param listener      A  SimpleLocationListener implementation.
@param interval      An interval in seconds - describing how often the implementation requires a fix. -1 represents the default interval value of 5.
@throws      IllegalArgumentException        If listener is null.
Adds a SimpleLocationListener implementation to this SimpleLocationProvider and starts a tracking session . Once added the implementation can expect to get location fixes at the specified interval via SimpleLocationListener#locationEvent ( int Object ) . NOTE : The first fix may take longer than the interval . @param listener A SimpleLocationListener implementation . @param interval An interval in seconds - describing how often the implementation requires a fix . - 1 represents the default interval value of 5 . @throws IllegalArgumentException If listener is null .
public void addSimpleLocationListener(SimpleLocationListener listener, int interval) throws IllegalArgumentException{
		if(listener == null){
			throw new IllegalArgumentException("null SimpleLocationListener");
		}
		stopTracking();
		retryAttempt = 0;
		lastValidFixTime = System.currentTimeMillis();
		currentOptimalModeIsGeolocation = true;
		switchToGPS = false;
		this.simpleLocationListener= listener;
		if(interval > 0){
			this.trackingInterval = interval;
		} 
		log("SimpleLocationListener added.");
		startTracking();		
	}
public void addSimpleLocationListener ( SimpleLocationListener listener , int interval ) throws IllegalArgumentException { if ( listener == null ) { throw new IllegalArgumentException ( "null SimpleLocationListener" ) ; } stopTracking ( ) ; retryAttempt = 0 ; lastValidFixTime = System . currentTimeMillis ( ) ; currentOptimalModeIsGeolocation = true ; switchToGPS = false ; this . simpleLocationListener = listener ; if ( interval > 0 ) { this . trackingInterval = interval ; } log ( "SimpleLocationListener added." ) ; startTracking ( ) ; }
Adds a {@link SimpleLocationListener} implementation to this {@link SimpleLocationProvider} and starts a tracking session.
Adds a { @link SimpleLocationListener } implementation to this { @link SimpleLocationProvider } and starts a tracking session .