Example of motion sensor usage on Android.