add motion event handler for Android

Now the frontend can recognize "tap" and "swipe" gestures in Android.