问题
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