I want to display North as a symbol on the screen.
My phone gives orientation.azimuth = 0.0 when pointing its short top edge to North.
My tablet when pointing with the long edge.
This is for both independent from the activity layout (Portrait/Landscape/Reverse).
How to get my application informed about the orientation of the build in sensor ?
Additional to this information I need to know the current layout orientation, which is forced by the user holding the device straight or upside down etc.
My phone gives orientation.azimuth = 0.0 when pointing its short top edge to North.
My tablet when pointing with the long edge.
This is for both independent from the activity layout (Portrait/Landscape/Reverse).
How to get my application informed about the orientation of the build in sensor ?
Additional to this information I need to know the current layout orientation, which is forced by the user holding the device straight or upside down etc.