Android: reading accelerometer without memory allocation?

我的未来我决定 提交于 2019-12-03 07:45:59

Sounds like something we need to fix on our side, I'll file a bug internally.

I believe this problem only occurs when there is more than one Sensor registered to a SensorEventListener. I think a workaround would be to use a different SensorEventListener per Sensor.

Also make sure to NOT register the SAME Sensor with two different SensorEventListener -- there was a bug in that case that got fixed in Gingerbread.

Another, less attractive, option would be to use the Gingerbread NDK, which doesn't have this issue.

I hope this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!