-->

How to adequatly replace Sensor.TYPE_ORIENTATION (

2019-06-21 07:48发布

问题:

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?