Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim listView1 As ListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Main")
listView1.Initialize("ListView1")
For i = 1 To 300
listView1.AddSingleLine("Item #" & i)
Next
Activity.AddView(listView1, 0, 0, 100%x, 100%y)
End Sub
Sub Activity_Resume
If TTS1.IsInitialized = False Then
TTS1.Initialize("TTS1")
End If
End Sub
Sub TTS1_Ready (Success As Boolean)
Log("ready")
If Success Then
' TTS1.SpeechRate = 1
' TTS1.Pitch = 2
If TTS1.SetLanguage("en" , "") = False Then 'en.fr,de
ToastMessageShow( "TTS library not found", True)
Return
End If
'para falar
' TTS1.Speak(EditText1.Text, True)
Else
Msgbox("Error initializing TTS engine.", "")
End If
End Sub