How to adequatly replace Sensor.TYPE_ORIENTATION (which is now deprecated)?

我怕爱的太早我们不能终老 提交于 2019-12-10 14:55:05

问题


I've tried several code snippets found on the internet in SensorManager.getOrientation() - related discussions. None give magnetic azimuth reliably, as Sensor.TYPE_ORIENTATION did. Could anyone share a working code for Sensor.TYPE_ORIENTATION emulation?

来源:https://stackoverflow.com/questions/15109073/how-to-adequatly-replace-sensor-type-orientation-which-is-now-deprecated

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