Turn off conversation for a specific application

I have a project to change the Android phone for the blind, so I used Android text in speech.

I was able to create an SMS and phone application using the TTS library from http://code.google.com/p/eyes-free/ and use myTTS.speak to write text.

The problem occurs when I use talkback for use in other applications, such as launcher, browser, etc. when I use talkback, they can talk about this application, but when I open my application (SMS and phone), there are two sounds, first from talkback and from the built-in myTTS.speak in my application, how can I disable talkback only in my application (SMS and phone)? so speak only from my application embedded in TTS, because I need to talk when I open another application.

thanks

+5
source share
1 answer

Instead of disabling or disabling TalkBack, you may find that it works (by checking all running processes) and disables the self-expression of your application when TalkBack starts. Of course, you should keep the app self-locking for messages that TalkBack didn’t say.

Alternatively, to prevent TalkBack from receiving (and speaking) events from your application, you can use the mechanisms discussed here .

+2
source

Source: https://habr.com/ru/post/1015024/


All Articles