ActivityRecognition example from Android developer website, edited to test on Android Wear