android-accessibility

How to make TalkBack read TextView error message automatically?

情到浓时终转凉″ 提交于 2019-12-06 04:32:48
问题 I'm currently making my app accessible and I'm having problem with my EditTexts: In every EditText, the user's input is being validated at some point (e.g. after pressing a button) and if the input is invalid, I show an error using editText.setError("message") . The problem is that if TalkBack is on, it will not automatically focus and read the error. Also, since I can't get the error's view, I can't ask TalkBack to focus it via sendAccessibilityEvent . I would appreciate any ideas on how to

How to make TalkBack read TextView error message automatically?

纵然是瞬间 提交于 2019-12-04 09:14:33
I'm currently making my app accessible and I'm having problem with my EditTexts: In every EditText, the user's input is being validated at some point (e.g. after pressing a button) and if the input is invalid, I show an error using editText.setError("message") . The problem is that if TalkBack is on, it will not automatically focus and read the error. Also, since I can't get the error's view, I can't ask TalkBack to focus it via sendAccessibilityEvent . I would appreciate any ideas on how to solve this issue while still using editText.setError() . Edit 1 Added code for @Abhishek V solution:

Android O - fingerprint gesture callback not working

谁说胖子不能爱 提交于 2019-12-01 03:52:33
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 from Settings->Accessibility. isGestureDetectionAvailable() is always returning false to me. Can someone please help. Here is the code: my_gesture_service.xml <accessibility-service xmlns:android="http://schemas.android.com/apk/res/android" android:accessibilityFeedbackType="feedbackGeneric" android:accessibilityFlags="flagDefault" android

How to know if Android TalkBack is active?

吃可爱长大的小学妹 提交于 2019-11-27 18:47:30
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 TextToSpeech) to help guide the user. My problem is that I only want those changes and extra outputs if the user has TalkBack active. Is there any way to know if it is? I didn't find anything specific to access TalkBack settings directly, but I was hoping there was some form of accessing general phone settings that could let me know what I need. Regards

How to know if Android TalkBack is active?

笑着哭i 提交于 2019-11-26 19:36:26
问题 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 TextToSpeech) to help guide the user. My problem is that I only want those changes and extra outputs if the user has TalkBack active. Is there any way to know if it is? I didn't find anything specific to access TalkBack settings directly, but I was

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

百般思念 提交于 2019-11-26 19:06:12
问题 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 want functionality similar to Voodoo App and MySmartPrice offers. Now what they do Step 1: When we open the Voodoo App for the first time they show a small tutorial. At the end of tutorial there is a "Activate Now" button which when pressed take us