How to create the Compass?

How to create the Compass?

BY 02 Nov 2015 Web Code Snippet
■ Summary

– Deviceorientation is virtual sensor using accelerometer, gyroscope, magnetic sensor.
So if you want to use the Compass, your target should support the accelerometer, gyroscope, magnetic sensor.
Written by