An Android service which runs in the background and receives callbacks by the system when accessibility events are fired.
Questions tagged [accessibilityservice]
543 questions
4
votes
0 answers
Can a third-party accessibility service capture audio on Android 10?
I want to build an accessibility service that can capture audio even when other applications are using the microphone (video camera, phone, voice recorder, Shazam, etc). Android 10 introduced audio sharing, but it's not clear whether third-party…

Miguel Rochefort
- 542
- 4
- 9
4
votes
0 answers
How to start an activity when an accessibility service is connected?
I have two activities MainActivity.java, MainActivity2.java and an accessibility service MyService.java. From MainActivity.java, I start the Accessibility Settings Activity using the following code:
Intent intentStartSettingActivity = new…

Sagar Singh Bhandari
- 61
- 2
4
votes
0 answers
How can I get touch axis(x coordinate, y coordinate) in android AccessibilityService?
I want to get touch locations(i.e., coordinates in screen) in the accessibilityservice class.

Joonyoung Park
- 41
- 1
4
votes
1 answer
Android AccessibilityService getEventTime() time format
I'm using an AccessibilityService on Android 7. It is possible to get the timestamp of each AccessibilityEvent by calling getEventTime(). According to the docs this method "Gets the time in which this event was sent".
Does somebody know what the…

machinery
- 5,972
- 12
- 67
- 118
4
votes
3 answers
How call a AccessibilityService method from another service?
I'm trying call a method present in a class that extends AccessibilityService from another class that extends Service this way:
MyAccessibility access = new MyAccessibility();
access.doAction(); // doAction(); is the method called
but nothing…
user9672569
4
votes
1 answer
Access react-native data from AccessibilityService
At the moment I have a react-native App which has data stored in it's redux store.
I followed the instructions provided by https://developer.android.com/guide/topics/ui/accessibility/services to create an accessibility service.
Now I have data from…

acuntex
- 147
- 13
4
votes
1 answer
Android How to avoid AccessibilityService being killed when user killed the relative application
I use AccessibilityService to get texts durning user making click-events on other apps.According to official documents,everything goes well.
Method 1 returns true.Method 2 returns true.
I meet the following problem.
The service not works when I kill…

HongZhen HE
- 43
- 4
4
votes
0 answers
Android accessibility service FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY is deprecated
Android accessibility service FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY is deprecated.
Does it have any alternative?
FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY added in API level 18 int
FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY This constant was…

Maor Hadad
- 1,850
- 21
- 36
4
votes
2 answers
How to make ActionBar Movable in "Accessibility Services"
I am new in the Topic "Accessibility Services".I am able to Scroll for button clicks, and able to switch off phone and many More things,
but i want to make my layout(action_bar.xml) Movable
So,
can anybody tell me please How to Make action_bar…

Sanju Baghla
- 170
- 1
- 13
4
votes
1 answer
AccessibilityService - performGlobalAction not working in own app
I'm trying to send a system back press event via the AccessibilityService and this works fine, but only if I'm not in my own app.
I'm always getting true from performGlobalAction no matter if I'm in my own app or not, but I only see that the event…

prom85
- 16,896
- 17
- 122
- 242
4
votes
1 answer
Accessibility Service and webview?
it's possible to click (with AccessibilityService) specific buttons that are placed inside Webview? E.g some application A has a webview inside MainActivity. After activity started web content is loaded in webview. Loaded web page contains button…

Rohit Sharma
- 167
- 2
- 14
4
votes
1 answer
Accessibility Service Cannot Set Text For EditText In Browser Window
I am using an accessibility service to monitor the window for EditText fields. I then need to set the value of these EditText fields. See the following code:
Meta data:

kspearrin
- 10,238
- 9
- 53
- 82
4
votes
2 answers
How to send data back from Activity to AccessibilityService?
I have a class that extends AccessibilityService and when there is a certain event starts an activity.
The problem is that when the activity ends, it should send data back to 'AccessibilityService'. Does anyone have an idea on how to do…

Giuseppe Raddato
- 63
- 2
- 7
4
votes
0 answers
Web view and accessibility service
Is it possible to click (with AccessibilityService) specific buttons that are placed inside Webview? E.g some application A has a webview inside MainActivity. After activity started web content is loaded in webview. Loaded web page contains button…

FormatC
- 51
- 5
4
votes
3 answers
Android : Read Google chrome URL using accessibility service
I want to read the url user has entered in his browser. Here is my accessibility service code.

user2144735
- 41
- 1
- 4