mirror of
https://github.com/android/ndk-samples
synced 2025-11-09 17:45:37 +08:00
The NDK documentation was not clear, but you are supposed to set the event rate on an ASensorEventQueue only after enabling its associated sensor. It also needs to be re-set after re-enabling the sensor. Without it, events arrive at some "default rate" (quite slowly on some devices).