简体   繁体   中英

Disabling talkback for specific application

i have a project to modify android phone for blind people, thus i used android text to speech.

I've managed to create a SMS and phone application using TTS library from http://code.google.com/p/eyes-free/ and use myTTS.speak to speak a text.

the problem comes when i use talkback to speak other application like a launcher, browser etc. when i use talkback they can speak those app, but when i open my app ( SMS and Phone) there are two sound, first from talkback and from built in myTTS.speak in my app, how i can disabling talkback only in my app(SMS and Phone)?so the speak only come from my app built in TTS, because i'll need talkback when i open other app

thanx

Instead of disabling or muting TalkBack, you could detect that it is running (by checking all running processes), and mute your app's self-voicing when TalkBack is running. You should of course preserve your app's self-voicing for those messages that TalkBack would not speak.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM