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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):