Recognizing custom gestures on Android