Hi
is it possible to use Voice recogntion in a widget?
i tried it but nothing happens
is it possible to use Voice recogntion in a widget?
i tried it but nothing happens
B4X:
'Service module
Sub Process_Globals
Dim rv As RemoteViews
Dim vr1 As VoiceRecognition
End Sub
Sub Service_Create
rv = ConfigureHomeWidget("L1", "rv",0, "widgettest")
End Sub
Sub Service_Start (StartingIntent As Intent)
If rv.HandleWidgetEvents(StartingIntent) Then Return
vr1.Initialize("vr1")
End Sub
Sub rv_RequestUpdate
rv.UpdateWidget
End Sub
Sub rv_Disabled
StopService("")
End Sub
Sub Service_Destroy
End Sub
Sub ImageView1_Click
vr1.Listen
End Sub
Last edited: