I want to find the Azimuth angle of device when It is not FLAT to the ground.
Here is an already existing Answer but not complete for me:
Here is the accepted answer on this question, which is almost same. Inconsistent orientation sensor values on Android for azimuth/yaw and roll
Problem:
But in this question, accepted answer gives azimuth value in the range -89 to 89. I want to calculate Azimuth angle value in range 0-359 degree
, when moving from Magnetic North. How can I calculate that in Android Sensors?