How can you update an AccessibilityService in real time to update it’s properties from an Activity?
I have written and AccessibilityService and I want to call the method “setServiceInfo()” within that service. How can you accomplish this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found out how to do this in a different way:
I set this service’s settings in the service when it’s created like this:
Basically, I was looking for a way to update the “packageNames” property in real time to filter the packages that this service would respond to. I was unable to find out if that was possible so I instead set this property to null and then filter the packages based on the event that was sent to this service. In real time I check the event package against my DB of packages to respond to. I hope someone else finds this helpful.