#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim vr As VoiceRecognition
Dim spk As TTS
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("ttt")
vr.Initialize("vr")
spk.Initialize("spk")
End Sub
Sub VR_Result (Success As Boolean, Texts As List)
If Success = True Then
For i = 0 To Texts.Size -1
Dim t As String = (Texts.Get(i))
Next
If t = "Hallo" Then
spk.Speak("Hallo", True)
End If
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Noch besser ist es das B4A mit "File->Export as Zip" zu exportieren und an den Thread zu hängen, dann sind gleich die Layouts und eingebunden Libraries zu sehen und die Fehlersuche und Hilfe geht deutlich einfacher...
Noch besser ist es das B4A mit "File->Export as Zip" zu exportieren und an den Thread zu hängen, dann sind gleich die Layouts und eingebunden Libraries zu sehen und die Fehlersuche und Hilfe geht deutlich einfacher...