Files
ndk-samples/sensor-graph/accelerometer
Jiawen Chen ca59693a6c Set event rate after enabling sensor so it takes effect.
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).
2016-09-15 09:33:09 -07:00
..