Android:Sensors
lastmod 2026-11-10created 2014-01-152 edits
Android:Sensors covers Android's sensor framework. You enumerate sensors such as the accelerometer, gyroscope, geomagnetic, proximity, and light sensors through SensorManager and receive values by registering a SensorEventListener; it also provides virtual sensors such as the rotation vector, which combine hardware sensors. When no real device is available, you test by simulating sensor values with the emulator's virtual sensors or tools such as SensorSimulator.