My app keeps crashing in the BillingManager.Initialize
NOW the Initialize routine works fine on 3 different devices I have all different size and android version.
I believe this has something to do with GooglePlay not being installed? Or them not having an account setup.
How do I figure out what is causing the crash in BillingManager.Initialize or at least trap the error so I can leave the starter routine gracefully and inform the user of what they need to do.
Not sure how they would have my app running if they don't have GooglePlay installed and a valid account. How would then download it from GooglePlay site?
Would using the following code help me determine if GooglePlay is installed and the have a Google account setup?
Does anyone know that the above code returns if GooglePlay services are NOT installed?
B4X:
~i:** Service (starter) Create **
~i:** Service (starter) Start **
~e:starter_service_start (java line: 1039) ~e:java.lang.NullPointerException
~e: at anywheresoftware.b4a.objects.IbHelper.startSetup(IbHelper.java:269)
~e: at anywheresoftware.b4a.inappbilling3.BillingManager3.Initialize(BillingManager3.java:44)
~e: at com.BOBs.BBS.starter._service_start(starter.java:1039)
NOW the Initialize routine works fine on 3 different devices I have all different size and android version.
I believe this has something to do with GooglePlay not being installed? Or them not having an account setup.
How do I figure out what is causing the crash in BillingManager.Initialize or at least trap the error so I can leave the starter routine gracefully and inform the user of what they need to do.
Not sure how they would have my app running if they don't have GooglePlay installed and a valid account. How would then download it from GooglePlay site?
Would using the following code help me determine if GooglePlay is installed and the have a Google account setup?
B4X:
Dim mPackageManager AsPackageManagerDim GooglePlayServicesVersion As Int
GooglePlayServicesVersion = mPackageManager.GetVersionCode("com.google.android.gms")
Does anyone know that the above code returns if GooglePlay services are NOT installed?