Android Question I don't know how to solve this question.

Gary Lai

New Member
Licensed User
Longtime User
problems01.jpg

What's wrong to me? Please help me solve it. Thanks everybody.
 

Mark Read

Well-Known Member
Licensed User
Longtime User
You do not give a lot of information but I can think of three things:
1. Your key is wrong
2. You are not connected to a google account
3. Google play store is not installed
 
Upvote 0

Gary Lai

New Member
Licensed User
Longtime User
My Code is in follow:

#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim manager As BillingManager3
Private key As String
key = "MIIBIj....."
End Sub

Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.

Private Button1 As Button
End Sub

Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")

Activity.LoadLayout("testing")
If FirstTime Then
manager.Initialize("manager",key)
manager.DebugLogging = True
End If

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

Sub kk
End Sub

Sub manager_BillingSupported (Supported As Boolean, Message As String)
Log(Supported & ", " & Message)
Log("Subscriptions supported: " & manager.SubscriptionsSupported)
If Supported Then
manager.GetOwnedProducts
End If
End Sub

Sub manager_OwnedProducts (Success As Boolean, purchases As Map) 'manager_purchasesComplete
Log(Success & "$$$$")
If Success Then
Log(purchases)
For Each p As Purchase In purchases.Values
Log(p.ProductId & ", Purchased? " & (p.PurchaseState = p.STATE_PURCHASED))
Next
End If
End Sub

Sub Button1_Click
manager.RequestPayment("ka_family","inapp","payment")
End Sub
 
Upvote 0
Top