Custom Accessibility Services

In the first post, I talked about making apps accessible to all. In this second and final post I will explain how to create an accessibility service and what can be the intentions behind creating one. How to create a custom accessibility service? Create a class that extends AccessibilityService and override onAccessibilityEvent(AccessibilityEvent event) and onInterrupt() methods. onAccessibilityEvent() – This method is called back by the system when it detects an AccessibilityEvent that matches the event filtering parameters specified by our accessibility service. onInterrupt() – This method is called when the system wants to interrupt the feedback our service is providing, usually in response to a user action such…

Accessibility: Increasing app reachability

I always thought of accessibility services in Android meant to help people with visual or physical disabilities in accessing apps, until recently, when I came across few apps which requests user to turn on their custom accessibility service in order to work properly. To my surprise, these apps are in no way related to aiding accessibility for visual or physical impaired people. So I started looking into details of accessibility service. I will be sharing my findings in a series of two blogs. This post explains what accessibility service is and how can we make our apps accessible. Next post will talk about creating custom accessibility services. What…