I am studying AccessibilityService. I studied what is Accesibility Service and why we use it, what are advantages of Accessibility Service. So I tried to make a demo of Accessib
You are attempting to start your own AccessibilityService
. That is not possible, as you cannot hold android.permission.BIND_ACCESSIBILITY_SERVICE
. Moreover, it should not be necessary, as the system will start your service when appropriate (e.g., the user has enabled the service in Settings).
If you have business logic in your AccessibilityService
that you also want to use elsewhere, move it to some central spot that can be used by both the AccessibilityService
and your other code.