Android SpeechRecognizer should only be used from the application's main thread
I am trying to integrate some of Androids Speech APIS in my AndEngine based game. I placed my code within the BaseGame activity - however this error appears at runtime: 05-06 23:51:28.955: ERROR/AndroidRuntime(553): java.lang.RuntimeException: SpeechRecognizer should be used only from the application's main thread How do I access the applications main thread? And how can I ensure my Speech code runs in it. The setup is as follows: Main Class - BaseGameActivity SpeechClass Main Class instantiates a new SpeechClass + calls its method - then I get the above error. Please advise on how I can do