An Android service which runs in the background and receives callbacks by the system when accessibility events are fired.
Questions tagged [accessibilityservice]
543 questions
10
votes
0 answers
How to open Accessibility Settings of my app programmatically?
As mentioned here I can open Android Accessibility Settings page; I know I can open my app Accessibility Settings directly with this code:
Intent intent = new…

ET1992
- 151
- 9
10
votes
2 answers
How can I programmatically start and stop an AccessibilityService?
Background
I have an app that has an AccessibilityService. Android seems to keep AccessibilityServices running all the time, but I only need mine to run sometimes. (Specifically, if a user opens my app and turns it off, the AccessibilityService is…

Sam
- 40,644
- 36
- 176
- 219
10
votes
1 answer
"Cannot perform this action on a not sealed instance" java.lang.IllegalStateException exception
With android AccessibilityService able to paste in other app EditText Field, but with browser testfields (Emulator Default Browser or Samsung deault Browser) its not working, throwing error:
Cannot perform this action on a not sealed instance.
In…

Gulshan Singh
- 411
- 5
- 8
10
votes
1 answer
Reading notifications using AccessibilityService
I've recently tried to read incoming notifications using AccessibilityService.
I know reading notifications using NotificationListenerService, but that's not what I need (for compatibility with lower android versions).
My problem is,…

Javi
- 889
- 1
- 16
- 41
9
votes
2 answers
How to tell TalkBack a custom view is being used as a button
I’m using a custom view as a button on Android, which doesn't inherit from android.widget.Button. What is the best way of telling the accessibility services it's a button?
Is it enough to just call setClickable(true) on the view?
With a standard…

Tom Gilder
- 1,079
- 1
- 13
- 21
9
votes
1 answer
Click notification action button programmatically
How can I click a notification action button programmatically (another application notif, not my)?
I can click a normal button by using the button.performClick() method.
I have accessibility service to listen to incoming notification (and…

Nirel
- 1,855
- 1
- 15
- 26
9
votes
1 answer
Customise Android Talkback in Alert Dialogue?
I've checked with all default alert dialogue box via Android TalkBack. Default Android Talkback behaviour is that it reads all contents(non stop) in dialogue box. Is there any way I can customise it according to my need.
For example :
AlertDialog…

Mohammad Tauqir
- 1,817
- 1
- 18
- 53
9
votes
2 answers
how to open Accessibility Settings of my app directly?
As mentioned here: How can I start the Accessibility Settings Page of my APP in Android?
I can open my app Accessibility Settings directly with this code:
Intent intent = new Intent();
intent.setClassName("com.android.settings",
…

David
- 2,129
- 25
- 34
9
votes
1 answer
How to debug accessibility service?
I have some problem with debugging AccessibilityService and can not find a solution - with every deployment/debug from Eclipse the service is not restarted automatically and it requires the manual action of restarting the service.
What I am forced…

Chameleon
- 9,722
- 16
- 65
- 127
9
votes
4 answers
How to get notified when a notification is notified
I want to read/access/log the notifications fired on notification bar by other applications.
I searched Intents and PendingIntents a lot, but couldn't get a solution.
Does my application need to be notified when any notification is fired?
Or Does…

Kishore
- 952
- 2
- 11
- 31
8
votes
2 answers
Accessibility service: get views you can interact with instantly (same as Voice Access)?
The goal is to obtain views that can be interacted with instantly (that can be clicked right now and something would happen). If the view is visible and clickable in general but hovered by another view/menu/side panel, it should be omitted.
Voice…

nicolausYes
- 633
- 8
- 33
8
votes
3 answers
Android unable read window content on few devices using accessibility service
My requirement: Reading the text from pop up, dialog etc for particular app.
I have implemented an accessibility service and I am receiving proper events and data as per my requirement. However while testing I realized that on some devices instead…

Ishaan
- 3,658
- 2
- 23
- 39
8
votes
3 answers
AccessibilityNodeInfo - send text
I am developing an Android app, where I have to send text to focused EditText field of other Applications.
I have done it in API level 18 and above using AccessibilityService, when I find the EditText, I paste the data from ClipBoard. Here is the…

amithgc
- 6,167
- 6
- 29
- 38
7
votes
3 answers
How to check if accessibility service crashed (Android Pie now displays this info in settings)?
I've found out that Android 9 now shows info if accessibility service stopped working.
That was always a pain for developers who try to leverage accessibility API.
Accessibility looks like enabled, but service is stopped. And to get it back to…

Bringoff
- 1,093
- 1
- 10
- 24
7
votes
2 answers
java.lang.IllegalStateException: Cannot perform this action on a not sealed instance
I am using accessibility service to find a button on screen and click it, but for some reason I am getting the follow error:
java.lang.IllegalStateException: Cannot perform this action on a not sealed instance.
at…

user2101081
- 445
- 5
- 22