Code example for Sensor

Methods: getVendor

0
	@Override 
	public void onSensorChanged(SensorEvent event) {
		Sensor sensor = event.sensor;
        // avoid google's implementations of the value estimation 
        // to get only the iNemo values. 
        if (!sensor.getVendor().equalsIgnoreCase("Google Inc.")){
        	PipelineSharedData.setLastSensor(event.values);
        	TimeStamp.updateTime(event.timestamp);
        } 
	} 
	 
	private static class TimeStamp { 
		private static  long timestamp;
		private static long startime;
		private static boolean started = false;
		 
		private TimeStamp(){} 
		 
		/** 
		 * Update the timestamp field using the latest sensor timestamp acquired.  
		 * */