I tried several snippets of code found on the Internet in discussions SensorManager.getOrientation(). None of them have a reliable magnetic azimuth, since Sensor.TYPE_ORIENTATION. Can anyone use working code to emulate Sensor.TYPE_ORIENTATION?
source
share