Accelerometer accuracy problem

Moderators: garrywadams, Aathif Mahir

Post Reply
no avatar
Posts: 1
Joined: Wed Apr 03, 2019 8:33 am
Cash on hand: Locked

Accelerometer accuracy problem

Post by bmoissa » Wed Apr 03, 2019 8:38 am


I have the following code:

Code: Select all

Sensor accelerometer = null;
accelerometer = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
sensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_FASTEST);
When the listener gets the information from the accelerometer, the accuracy code I get is 111 or 79. As far as I understand, it should be a value between -1 (SENSOR_STATUS_NO_CONTACT) and 3 (SENSOR_STATUS_ACCURACY_HIGH).

What is happening? Is it a bug or am I doing something wrong?

Thanks very much!


I am using a smartwatch to capture sensor data. It is an Ticwatch E X8B1, with Wear OS 2.6, Google Play Services 15.0.90, Android 8.0.0.

I am developing the app using Android Studio 3.3.1 (Build #AI-182.5107.16.33.5264788), JRE: 1.8.0_152-release-1248-b01 amd64, JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o on Windows 10 10.0.

The app uses the a min SDK of 23, but the targeted one is 28.

It has the following dependencies:

Post Reply