Android accessibility service detect notification

Accessibility services in Android 4.0 and above can behave strangely if there is no accessibility-service meta-data tag defined in the manifest. Try defining the meta-data as in the examples below. You should continue to use setServiceInfo() to maintain backward compatibility with pre-4.0 devices. Also, I would recommend specifying a feedback type that is specific to … Read more

Creating Accessible UI components in Delphi

The VCL itself does not natively implement any support for MSAA. Windows provides default implementations for standard UI controls, which many standard VCL components wrap. If you need more MSAA support than Windows provides, you will have to implement the IAccessible interface yourself, and then have your control respond to the WM_GETOBJECT message so it … Read more

How to get global screen coordinates of currently selected text via Accessibility APIs.

You can use the accessibility APIs for that. Make sure that the “Enable access for assistive devices” setting is checked (in System Preferences / Universal Access). The following code snippet will determine the bounds (in screen coordinates) of the selected text in most applications. Unfortunately, it doesn’t work in Mail and Safari, because they use … Read more

Getting screen reader to read new content added with JavaScript

The WAI-ARIA specification defines several ways by which screen readers can “watch” a DOM element. The best supported method is the aria-live attribute. It has modes off, polite,assertive and rude. The higher the level of assertiveness, the more likely it is to interrupt what is currently being spoken by the screen reader. The following has … Read more

‘Missing contentDescription attribute on image’ in XML

Follow this link for solution: Android Lint contentDescription warning Resolved this warning by setting attribute android:contentDescription for my ImageView android:contentDescription=”@string/desc” Android Lint support in ADT 16 throws this warning to ensure that image widgets provide a contentDescription This defines text that briefly describes the content of the view. This property is used primarily for accessibility. … Read more