I am wondering how can I check if a sensor value is less than 1?
For example:
public void onSensorChanged(SensorEvent event) {
if (event.values[1] < 1) { // How to check if sensor is lower then 1.00
// Do something
}
}
This currently crashing my app.