Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Accessibility "TalkBack" in your application?

My application uses TTS (text-to-speech) Engine, and the conflict I am running into is that Accessibility Talkback settings override anything TTS tries to say. I would like to disable the phone's talkback option if using my application.

Is there some sort of permission to handle this? I have not been able to find anything.

like image 705
portfoliobuilder Avatar asked Mar 09 '14 23:03

portfoliobuilder


People also ask

Can I disable TalkBack app?

Disable TalkBack feature Go to Settings > Accessibility > TalkBack. At the bottom of the screen, tap Settings. In the TalkBack Settings screen, uncheck all the options, and then press Back. If the TalkBack service is enabled, you must turn it off.


2 Answers

I know it's late, but I had the same problem few days ago. If you want to "ovverride" the TalkBack with your own TTS engine you can simply add:

android:importantForAccessibility = "no"

to each view inside your Layout. Now you can call your TtsSpeak() method inside your Activity.

IMPORTANT: This does not turn off the TalkBack App, but it will allow you to have a little bit more control over your App.

like image 170
Benedetto Del Greco Avatar answered Sep 22 '22 01:09

Benedetto Del Greco


That is not allowed unless the phone is rooted. The accessibility functions on the phone are not to be changed by a developer, as a blind person may need them to use the phone.

like image 27
ElectronicGeek Avatar answered Sep 26 '22 01:09

ElectronicGeek