Detect "shake" event for an Android device