Linear coding : Can i start my app directly, elseware than in object event?

DOM85

Active Member
Licensed User
Longtime User
Hi,
I have to start my application directly without any click event, begining by a TTS hello message.

So i tried to put all my code in activity_create, but in this case, at the run time i obtain a "java.lang.runtime.exception:error speaking text" at the line where i do the tts.speak.

But, if i debug step by step my app, the "Hello" tts.speak statement works well. I think that TTS inititializing don't has time to complete before the end of Activity_create sub.

But how can i do to begin my code just after activity_create completion?
Thank you for your help.
 

DOM85

Active Member
Licensed User
Longtime User
Try in Activity_Resume and if not then enable a short Timer and do it in the Tick event.

Thank you for your answer Agraham.
In Activity_Resume i had the same problem.

I used your solution with a timer and it works fine.
Thank you very much!!
 
Upvote 0
Top