Tuesday, April 14, 2015

Android : How to get the number auf SensorEvent values per sensor



If you register a Sensor you will get SensorEvents by the methode onSensorChanged(SensorEvent).


This SensorEvent have the value vector "values[]". Wich is most time size of 3. Is there way to get the number of values per Sensor without testing it ?


The size of a barometer's value vector for example is "3" too but only the first index have a value while the others have "0". Is there way to get the valid value number of each sensor too ?


No comments:

Post a Comment