Android Question Question about LaunchBillingFlow

D

Deleted member 103

Guest
Hi,

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
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…