This simple compass application was realized as a specialist work. At startup, it monitors whether the mobile device has the required sensor, and if not, stops receiving an error message.
In addition to displaying the compass, it measures and displays the skyline, bearing angle, and device inclination.