Description: Android compass, use a TextView control device type display angle. In addition, an image with a compass pointing north and south. First, the sensor Manager needs the device is initialized, the application is initialized. Meanwhile, the need to register the device orientation sensor when the application is activated and canceled it when the application is halted to conserve battery.
To Search:
File list (Check if you may need any files):
compasssource\main.xml
.............\MainActivity.java
compasssource