Detect shaking of the device from within your Android application.