Questions tagged [android-accessibility]

Adding accessibility to apps increases the app's reach and versatility

Android apps aim to be usable by everyone, including people with disabilities.

Common disabilities that affect a person's use of an Android device include blindness or low vision, color blindness, deafness or impaired hearing, and restricted motor skills. When you develop apps with accessibility in mind, you make the user experience better, particularly for users with these disabilities.

In most cases, making your Android app more accessible doesn't require extensive code restructuring. Rather, it means working through the subtle details of how users interact with your app and providing appropriate feedback to users based on their interactions

  • Labeling UI Elements with content description
  • Creating announcement groups
  • Adding keyboard navigation to apps
  • Appropriate touch/tap target size
  • Have adequate color contrast between UI elements, texts again background views

The official documentation has more detail

314 questions
38
votes
8 answers

How to know if Android TalkBack is active?

I'm developing an application that uses TalkBack to guide people through it. However, in those situations I want to have some subtile differences in the layout of the application so navigation is easier and also have extra voice outputs (with…
23
votes
2 answers

How to read window content (using accessibilityService) and evoking UI using draw over other app permission in Android?

My last question about the same topic was not clear enough and was put on hold by community and later it was automatically deleted. So, I am explaining that Question in detailed manner so that community can understand and help in a better manner. I…
13
votes
1 answer

How to take action for users using android accessibility service?

We have started to look into the Building Accessibility Service for Android at https://developer.android.com/guide/topics/ui/accessibility/services.html. Based on this documentation, we can perform custom gestures on behalf of user as mentioned…
Ashfaq
  • 127
  • 4
12
votes
1 answer

Reading text from (Facebook) RecyclerView with AccessibilityService

How can I see the text of non-focused RecyclerView children (items)? My accessibility service is supposed to read out text from the screen which contains keywords. This works well in most situations, except where I am dealing with RecyclerViews,…
11
votes
1 answer

Why was the warning to add content description to image views and image button removed in AppCompat

When building layouts in android, if you use an ImageView or an ImageButton without adding a content description, then you would get a warning telling you to add a content description to the views with AppCompatImageView and AppCompatImageButton…
oziomajnr
  • 1,520
  • 1
  • 13
  • 35
11
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…
9
votes
2 answers

How to get url from browser using accessibility service

I have enabled accessibility-service permission and now i want to get url from address bar. I have tried below thing : accessibility_service_config.xml
user3997016
9
votes
2 answers

How to shift accessibility focus on RecyclerView's first element on some action?

I am new with android accessibility - TalkBack. I am aware of basic things like contentDescription, importantForAaccessibility and how they make node tree, etc. In my problem, I want to shift accessibility focus on RecyclerView's first element on…
9
votes
1 answer

Android O - fingerprint gesture callback not working

I am testing on Pixel device with Fingerprint Gestures ON from accessibility. I am trying to get the gesture callbacks using FingerprintGestureController but never getting any gestures in return even after I turn the accessibility ON for this app…
8
votes
1 answer

Scrolling through FlatList in React Native does not provide Talkback message in Android

I am using React Native's FlatList component. When user is scrolling through FlatList on Android with TalkBack on, it does not read "showing items ... to ... of ..." On iOS, scrolling with Voiceover does give feedback (showing page x of y). I'm…
8
votes
4 answers

Android Accessibility - Unable to focus on any element in the Appbar

I have this issue in 2 of my activities. When I navigate using keyboard Tab keys or arrow keys - I am unable to reach any element in the App bar. 1) Activity 1 -> My appbar has a hamburger menu icon to access the NavigationView. I am not able to…
8
votes
3 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…
8
votes
3 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…
8
votes
4 answers

Android accessibility identify heading

I have the latest version of Talkback and its announcing "My Top level Text Heading". Android native behaviour is adding "Heading" for my top level elements. I could not find a way to switch ON/OFF heading announcement. Is there an API to control…
Shivam
  • 103
  • 1
  • 4
7
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…
1
2 3
20 21