2, in the call getRootInActiveWindow () to obtain the root node, Android Studio cannot resolve the function, through the import Android. Accessibilityservice. Accessibilityservice still can't solve,
CodePudding user response:
In the place where you can take to pass on this in the past, it is ok to take againCodePudding user response:
First of all, Java is object oriented, there is no such thing as a function, you should be js turned itFirst of all, the first common object-oriented method must first create an object to call
All you should write an AccessibilityService subclasses, and then open user authorization auxiliary function, and call getRootInActiveWindow in AccessibilityService type of object
CodePudding user response: