Android Accessibility Service Action_click Doesn't Work With Window Overlay
I am trying to click the force stop button using the accessibility service.when i find the FORCE STOP button i click it using: childNodeView.performAction(AccessibilityNodeInfo.ACT
Solution 1:
I believe this is related to the overlay type. Specifically TYPE_PHONE. Phone overlays have special mechanisms to trap events so that users don't accidentally touch buttons with their cheek why talking on the phone.
You should try a different type. For Android O Try:
TYPE_APPLICATION_OVERLAY
For prior operating systems you want:
TYPE_SYSTEM_ALERT
Both of these will require the following permission:
SYSTEM_ALERT_WINDOW
Also, the following flags may be useful if the above alone doesn't fix it:
FLAG_NOT_FOCUSABLE
Post a Comment for "Android Accessibility Service Action_click Doesn't Work With Window Overlay"