Android Question dispatchGesture returns false

Blueforcer

Well-Known Member
Licensed User
Longtime User
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

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:

Blueforcer

Well-Known Member
Licensed User
Longtime User
The problem was, that i had to reintall the app to set the new permissions to handleGestures
 
Last edited:
Upvote 0
Top