Android SensorCompass (basic)

CompassActivity.java

activity_main.xml