Example of using the Android rotation sensor and visualizing the device orientation with a custom view.