Accelerometers are also known as gravity sensors because they
measure acceleration caused both by movement and by gravity. As a
result, an accelerometer detecting acceleration on an axis
perpendicular to the earth’s surface will read –9.8m/s2 when it’s at
rest. (This value is available as the SensorManager.STANDARD_GRAVITY
constant.)