2016年11月6日

Android SensorManager Accuracy Value

Android SensorManager Accuracy Value


public void onAccuracyChanged(Sensor sensor, int accuracy) {
     }


int accuracy


int SENSOR_STATUS_ACCURACY_HIGH
This sensor is reporting data with maximum accuracy

Constant Value: 3 (0x00000003)


int SENSOR_STATUS_ACCURACY_LOW
This sensor is reporting data with low accuracy, calibration with the environment is needed

Constant Value: 1 (0x00000001)


int SENSOR_STATUS_ACCURACY_MEDIUM
This sensor is reporting data with an average level of accuracy, calibration with the environment may improve the readings

Constant Value: 2 (0x00000002)

int SENSOR_STATUS_NO_CONTACT
The values returned by this sensor cannot be trusted because the sensor had no contact with what it was measuring (for example, the heart rate monitor is not in contact with the user).

Constant Value: -1 (0xffffffff)


int SENSOR_STATUS_UNRELIABLE
The values returned by this sensor cannot be trusted, calibration is needed or the environment doesn't allow readings

Constant Value: 0 (0x00000000)

沒有留言:

張貼留言