Reputation: 165
I'm using a TTS engine, and i want to disable the buttons until the tts message has finished, so the user can't select an option on the screen until the tts message has been listened completely.
I've been trying using
while (tts.isSpeaking())
{
button.setclickable(false);
}
button.setclickable(true);
but it's not working.
I guess that is because tts.isSpeaking doesn't work as i expected.
Upvotes: 1
Views: 674
Reputation: 30855
check the Utterance concept with this TTS using this you can implement your task check here
http://developer.android.com/resources/articles/tts.html
Upvotes: 2