android-a11y

How to implement android intermediate progressbar accessibility

ぐ巨炮叔叔 提交于 2021-02-10 14:47:51
问题 I would like to announce the loading text on an android intermediate progressbar. I want to output something like this for disabled people who are using talkback service on the Android device when an intermediate progressbar is loading. File is loading. File is fetching. File is converting. File is loaded. I checked around google and found that I could use: 1) announceForAccessibility on progressbar view. (Not working in my case, only works when I load it with a Handler) My code override fun

How to implement android intermediate progressbar accessibility

喜欢而已 提交于 2021-02-10 14:47:12
问题 I would like to announce the loading text on an android intermediate progressbar. I want to output something like this for disabled people who are using talkback service on the Android device when an intermediate progressbar is loading. File is loading. File is fetching. File is converting. File is loaded. I checked around google and found that I could use: 1) announceForAccessibility on progressbar view. (Not working in my case, only works when I load it with a Handler) My code override fun

Test accessibility (talkback) for application

ぃ、小莉子 提交于 2020-01-13 10:46:21
问题 I am making my application accessibility compliant. for this providing correct data to the accessibility framework by giving android:contentDescription="your string" in xml. Also I have Seen the Android Developer guide on Making Applications Accessible for an overview of what steps you need to take to ensure your application works correctly with accessibility services. Now problem is testing these all in each and every screen taking more time. my app has 30 screens and each time to go to any

How to debug accessibility service?

谁说我不能喝 提交于 2019-12-21 09:24:54
问题 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 to do now: I am adding some new code and deploying/debugging with Eclipse. Application is deployed correctly and started but the new version of service is not started (messages from service are not shown and breakpoints are not working). I am

onKeyEvent & Accessibility Service

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 04:43:12
问题 My users will be using TalkBack enabled or some other Accessible Service. I would like to capture the onKeyEvent events in our App but the event is dispatched to the enabled Accessibility Services. I have created the following basic Accessibility Service. public class Accessibility_Service extends AccessibilityService { private String TAG = Accessibility_Service.class.getSimpleName(); @Override public boolean onKeyEvent(KeyEvent event) { int action = event.getAction(); int keyCode = event

Modify accessibility focus order

被刻印的时光 ゝ 提交于 2019-12-05 14:57:55
问题 Is it possible to change the accessibility focus order? For example, if I have 3 views side by side, with ids view1, view2, and view3, is there a simple way to make the accessibility focus go to view3 when the user swipes right from view1? Here is what I've tried: I have the following in a linear layout. <ImageView android:layout_width="30dp" android:layout_height="30dp" android:id="@+id/imageView" android:focusable="true" android:nextFocusUp="@+id/imageView3" android:nextFocusDown="@+id

Accessibility and Android WebView

夙愿已清 提交于 2019-12-04 08:57:35
问题 Is Accessibility enabled for Android WebView? Can anyone tell how to make a WebView accessible? 回答1: The Android webview accessibility is enabled via javascript injection in Honeycomb and above (as pointed out by alanv). The user must enable it by: Turning on Accessibility mode, including 'Explore by Touch' in 4.0+. Enabling 'Enhanced Web Accessibility', or, on older devices, 'Inject Web Scripts'. This works by injecting javascript into each loaded pages via <script> tags. Note that you will

onKeyEvent & Accessibility Service

前提是你 提交于 2019-12-04 05:32:28
My users will be using TalkBack enabled or some other Accessible Service. I would like to capture the onKeyEvent events in our App but the event is dispatched to the enabled Accessibility Services. I have created the following basic Accessibility Service. public class Accessibility_Service extends AccessibilityService { private String TAG = Accessibility_Service.class.getSimpleName(); @Override public boolean onKeyEvent(KeyEvent event) { int action = event.getAction(); int keyCode = event.getKeyCode(); if (action == KeyEvent.ACTION_UP) { if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) { Log.d(

How to debug accessibility service?

痞子三分冷 提交于 2019-12-04 04:24:44
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 to do now: I am adding some new code and deploying/debugging with Eclipse. Application is deployed correctly and started but the new version of service is not started (messages from service are not shown and breakpoints are not working). I am manually opening settings -> accessibility and see that my service runs. I am manually stopping and starting

Accessibility and Android WebView

本秂侑毒 提交于 2019-12-03 01:23:55
Is Accessibility enabled for Android WebView? Can anyone tell how to make a WebView accessible? krakatoa The Android webview accessibility is enabled via javascript injection in Honeycomb and above (as pointed out by alanv ). The user must enable it by: Turning on Accessibility mode, including 'Explore by Touch' in 4.0+. Enabling 'Enhanced Web Accessibility', or, on older devices, 'Inject Web Scripts'. This works by injecting javascript into each loaded pages via <script> tags. Note that you will have to be careful, as not all content will play nice with this javascript, and the injection will