public void endGesture(int x, int y) {
boolean Result;
mPath.lineTo( x, y );
GestureDescription.StrokeDescription stroke = new GestureDescription.StrokeDescription( mPath, 0, System.currentTimeMillis() - mLastGestureStartTime);
GestureDescription.Builder builder = new GestureDescription.Builder();
builder.addStroke(stroke);
Result=dispatchGesture(builder.build(), null, null);
BA.Log("Java DispatchGesture: Result = " + Result);
}