The classes in this package are used for development of accessibility service that provide alternative or augmented feedback to the user.They may be useful in developing applications that may help people who need alternatives to use Android phones. eg : due to physical incapabilities.
Questions tagged [accessibility-api]
114 questions
55
votes
9 answers
Android: How do you check if a particular AccessibilityService is enabled
I've written an Android app that requires the use of the AccessibilityService.
I know how to check to see if Accessibility is enabled or disabled on the phone, but I cannot work out a way to determine if my app has been specifically enabled within…

Andrew
- 7,548
- 7
- 50
- 72
42
votes
9 answers
Enable access for assistive devices programmatically on 10.9
I want to enable access for assistive devices programatically on 10.9. On 10.8 and lower I was using following Applescript to enable access for assistive devices:
tell application "System Events"
if UI elements enabled is false then
set UI…

Vinpai
- 1,689
- 3
- 16
- 18
30
votes
3 answers
Getting Window Number through OSX Accessibility API
I am working on an application that moves windows of third party applications around on the screen.
To get an overview of all currently open windows, I use
CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly |…

0x90
- 6,079
- 2
- 36
- 55
16
votes
4 answers
How can I use Cocoa's Accessibility API to detect that a window is brought to front?
I'm using the Accessibility API to detect when a certain application opens windows, closes windows, when the windows are moved or resized, or made main and/or focused. However the client app seems to move a window to front without an Accessibility…

Steve McLeod
- 51,737
- 47
- 128
- 184
16
votes
1 answer
Move other windows on Mac OS X using Accessibility API
I'm trying to use the Accessibility API to change the position of other applications windows.What I wish to do is to get all the windows on the screen from all the applications, then move them all a given offset (lets say 5 or 10 or any value). I am…

tria
- 339
- 3
- 10
16
votes
2 answers
accessibility service is not started
I want to log all toasts events in android ics (4.0.3), but I was unable to log any system event. Service is just not started!
According to this question:
onAccessibilityEvent(AccessibilityEvent event) not intercepting…

POMATu
- 3,422
- 7
- 30
- 42
13
votes
1 answer
How to listen to taps and get views using Accessibility in Android?
I want to implement an Accessibility service in my Android app which can do the following things:
=>Get the onscreen taps/clicks across any apps.
=>Get the view which was tapped/clicked.
Initially I thought it would not be possible to do so because…

Srujan Barai
- 2,295
- 4
- 29
- 52
12
votes
5 answers
onAccessibilityEvent not called at all
I am trying to implement an AccessibilityService. I have shared my code below.
When I turn on my accessibility service from settings menu then onServiceConnected() is called but onAccessibiltyEvent() is not called at all. Please guide me on…

vipin agrahari
- 2,691
- 3
- 21
- 31
12
votes
2 answers
"Chrome legacy Window" when launching chrome with RunAs
I am trying to use MSAA (on Win7) to get the addressbar in chrome browser and replace it with a different url. When chrome is launched normally (as the loggedon user), I am able to find the addressbar using the IAccessible interface by traversing…

Sri
- 233
- 2
- 13
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
4 answers
How to make spannable text clickable with Accessibility mode on
I have a problem statement where i need to run my application with Accessibility setting on, to have talk back feedback, but the problem here is when i click on a TextView which have Spannable link in it, then it reads the full text but dose not…

Tushar Purohit
- 524
- 7
- 25
10
votes
3 answers
How to use Accessibility with sandboxed app?
OS X have a nice feature such as Accessibility API, which allow to control some system elements and another applications from your app code. But it stops working after turning on Sandbox. To submit an app to the store is mandatory to turn on…

Alex Sieroshtan
- 249
- 3
- 9
9
votes
1 answer
How to get the Objective-C class name corresponding to an AXUIElement?
Apple's Accessibility Inspector tool displays the Objective-C class corresponding to the currently inspected UI Element. See NSButtonCell at the very bottom of this screenshot:
However, how can I extract this information in my own code? The…

MrMage
- 7,282
- 2
- 41
- 71
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