According to the context menu, LaunchBillingFlow should only be started from an activity, but for me it also works from a class.
Is that right or am I doing something wrong?
B4X:
Sub Activity_Create(FirstTime As Boolean)
...
'Log("billmanager Starten")
billmanager.Initialize(Me, "billmanager", key)
...
End Sub
'Classe clsInAppBilling2
Private Sub billmanager_ShowInAppBilling(LocalizedPrice As Map)
...
Dim Message As String
Dim ProductSelected As String
ProductSelected = billmanager.Product_noad
Message = Starter.language.value("strInAppBillingId3")
billmanager.PurchaseProduct(ProductSelected, Message)
...
End Sub