I try to build a kind of VNC server, but with my own protocol.
ScreenMirroring works but i struggeling to build a input functionality.
so i tried to add it to the AccessibilityService example from
unfortunaly dispatchGesture always returns false, and nothing happens.
Did i missed something?
ScreenMirroring works but i struggeling to build a input functionality.
so i tried to add it to the AccessibilityService example from
AccessibilityService. performGlobalAction and dispatchGesture?
Olivera's shared example "#Extend, Accessibility Service" listens onAccessibilityEvent. But how to use the performGlobalAction and dispatchGesture methods?
www.b4x.com
B4X:
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);
}
unfortunaly dispatchGesture always returns false, and nothing happens.
Did i missed something?
Last edited: