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.