Home > Mobile >  About action_click AccessibilityService for help
About action_click AccessibilityService for help

Time:09-16

Consulting a problem, in the process of using accessibilityService, WeChat android's version of "contacts, new friends, add friends" interface, the search box, I found through text "WeChat ID/mobile number" space, found that it and its parent clickable are false, and again at the next higher level clickable is true, so I just click with action_click method the granddaddy of space, but without any response, make for a long time, now stuck in here, here is my code, also please help to give directions,
Public void fourthStep () {

AccessibilityNodeInfo nodeInfo=getRootInActiveWindow ();
List MyNodeInfo=nodeInfo. FindAccessibilityNodeInfosByText (" WeChat ID/mobile number ");

AccessibilityNodeInfo plusSign=myNodeInfo. Get (0);

If (plusSign getParent (). The getParent () isClickable ()==true) {
PlusSign. GetParent (). The getParent (). The performAction (AccessibilityNodeInfo. ACTION_CLICK);
The d (is it "clickable", "yes");
}


}

Should be from the first interface to the second interface, but no response,
  • Related