Android Question convert list to simple string

Beja

Expert
Licensed User
Longtime User
Hi all,

A little problem that I couldn't solve:

In the TTS example, the reco is returned as list.. is it possible that it can be a single line of string?
This is code:

Sub VR_Result (Success As Boolean, Texts As List)
If Success = True Then
ToastMessageShow(Texts.Get(0), True)
TTS1.Speak(Texts.Get(0), True)
End If

Activity.LoadLayout("1")
End Sub

Thanks in advance
Note:
My App will send a few words command (1 to 3 words only)
 

Beja

Expert
Licensed User
Longtime User
Thanks guys, it is solved!

Sub VR_Result (Success As Boolean, Texts As List)
If Success = True Then
Dim xxx As String
xxx = Texts.Get(0)
Msgbox(xxx,"")
TTS1.Speak(xxx,True)
'ToastMessageShow(Texts.Get(0), True)
'TTS1.Speak(Texts.Get(0), True)
End If
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
You are not new here, @Beja and you should know that you should use code-tags to get the code easier readable :)
 
Upvote 0
Top