Fsalcido888
New Member
Hi.... kind of new using B4A .... I'm trying to use TTS function on the very first opening screen which is call in Sub Activity_Create(FirstTime As Boolean).
The original sub contains only this :
Sub Activity_Create(FirstTime As Boolean)
Activity.RemoveAllViews
Activity.LoadLayout("HOME1")
End Sub.
But if I Add a TTS command after the activity load HOME1 and before the End Sub I will not get any error or syntax error but the created APK will fail (with no error message ) before showing anything on my phone
Guess I tried all possible commands I know and posted on this website and I cant get it to run,
1. The same layout HOME1 is loaded from other click menus and it works fine using TSS calls.
2. All Other menus and TSS calls works perfect without issues.
The Sub Activity_Create I created and ”fails” looks look like this:
Sub Activity_Create(FirstTime As Boolean)
Activity.RemoveAllViews
Activity.LoadLayout("HOME1")
TTS1.Speak("texto", True)
TTS1.Speak("mas texto", False)
End Sub
Thanks.
The original sub contains only this :
Sub Activity_Create(FirstTime As Boolean)
Activity.RemoveAllViews
Activity.LoadLayout("HOME1")
End Sub.
But if I Add a TTS command after the activity load HOME1 and before the End Sub I will not get any error or syntax error but the created APK will fail (with no error message ) before showing anything on my phone
Guess I tried all possible commands I know and posted on this website and I cant get it to run,
1. The same layout HOME1 is loaded from other click menus and it works fine using TSS calls.
2. All Other menus and TSS calls works perfect without issues.
The Sub Activity_Create I created and ”fails” looks look like this:
Sub Activity_Create(FirstTime As Boolean)
Activity.RemoveAllViews
Activity.LoadLayout("HOME1")
TTS1.Speak("texto", True)
TTS1.Speak("mas texto", False)
End Sub
Thanks.