Voice Recognition and widget

mcmanu

Active Member
Licensed User
Longtime User
Hi
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:

mcmanu

Active Member
Licensed User
Longtime User
Hi

Thx Erel, i give it a try :)
is it possible to make only one activity Transparent?
because i want to use the voice recognition for the widget and then it should open my app which is not transparent
 
Upvote 0

mcmanu

Active Member
Licensed User
Longtime User
Sorry for asking, but what happens when i choose "do not overwrite manifest"?
Do i have to put new things (like activitys i write) in the manifest on my own? or can i ignore it? for what is the AndroidManifest-Example?

i ask because i didn´t find any solution to make only one Activity transparent with the manifest editor
 
Last edited:
Upvote 0
Top