Whoopsy. I have some code that requires an activity and I couldn't figure out how to supply it from the pages so I put it main?
B4X:
public Sub GetTemplateInput(input As B4XInputTemplate) As ResumableSub
Dim m As Map
m.Initialize
Private Dialog As B4XDialog
Dialog.Initialize(Activity)
Wait For (Dialog.ShowTemplate(input, "OK", "", "CANCEL")) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
' update stock item qty
m.Put("Result", input.text)
End If
Return m
End Sub
So this is wrong then?
I am open to suggestions on doing this correctly