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

Discussion in 'Android Questions' started by Gary Lai, Mar 14, 2015.

?

A stupid in-app billing error

  1. send answer to my email: kam_yu@hotmail.com

    0 vote(s)
    0.0%
  2. send a page to me to read

    0 vote(s)
    0.0%
  3. suggest me some opinion to solve that question

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. Gary Lai

    Gary Lai New Member Licensed User

    [​IMG]
    What's wrong to me? Please help me solve it. Thanks everybody.
     
  2. mark35at

    mark35at Well-Known Member Licensed 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
     
  3. giga

    giga Well-Known Member Licensed User

    Your screen shot also shows warning #17 mathematics.bal file is missing.
     
  4. Gary Lai

    Gary Lai New Member Licensed 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
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Are you testing it on a real device? Can you access Google Play from this device?
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice