Simple Location API/src/rimx/location/simplelocation/SimpleLocationProvider.java
/**
	 * Checks the validity of a given mode value. Also checks whether the selected mode is actually available on the device.
	 * @param mode	Mode to validate.
	 * @return	True if valid. False otherwise.
	 */
Checks the validity of a given mode value. Also checks whether the selected mode is actually available on the device.
@param mode  Mode to validate.
@return      True if valid. False otherwise.
Checks the validity of a given mode value . Also checks whether the selected mode is actually available on the device . @param mode Mode to validate . @return True if valid . False otherwise .
private boolean isModeValid(int mode){	
		if(mode>=0 && mode<=4){
			return true;		
		} else {
			return false;
		}		
		if(mode>=0 && mode<=2){
			return true;		
		} else {
			return false;
		}		
	}
private boolean isModeValid ( int mode ) { if ( mode >= 0 && mode <= 4 ) { return true ; } else { return false ; } if ( mode >= 0 && mode <= 2 ) { return true ; } else { return false ; } }
Checks the validity of a given mode value.
Checks the validity of a given mode value .
//#ifdef BlackBerrySDK6.0.0
 //#endif
 //#ifdef BlackBerrySDK5.0.0
 //#endif	
