I have a little math quiz and I display the questions from a list. When a question is displayed, I want the speech recognizer to wait until the person gives an answer, then check the answer.
In the first piece of code, it cycles through the questions and waits until something is typed into the answer box.
In the second piece of code, it cycles through the questions and but does not wait until you say an answer. It will put the answer in the box if you get lucky and say it at the right time.
In the third piece of code, I think it should wait until an answer is given, but it crashes the app.