Home > Mobile >  Need to use in UiAutomator AccessibilityService, cannot resolve getRootInActiveWindow ()
Need to use in UiAutomator AccessibilityService, cannot resolve getRootInActiveWindow ()

Time:10-27

1, in UiAutomator monitoring toast has successfully;
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 again

CodePudding user response:

First of all, Java is object oriented, there is no such thing as a function, you should be js turned it
First 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:

refer to the second floor can reply wang:
Java is an object-oriented first, there is no such thing as function, you should be a js turned
First of all, the first common object-oriented method must first create an object to call
All you should write an AccessibilityService subclasses, and user authorization, auxiliary functions, and then call in the class object AccessibilityService getRootInActiveWindow


I'm in the AccessibilityService for operation,

CodePudding user response:

In AccessibilityService subclasses of this operation,

CodePudding user response:

Well, says function is used to, is a way

CodePudding user response:

General code screenshots send it and see
  • Related