I've uploaded my app to google play but need to test the licensing code in my app before I publish it. Do I have to Activate it first in google play? I see there is an activate link and a delete link for the app.
How do I upload a new app version? I don't see an update link/button. How are you published developers doing updates?
I think that you do not need to activate it if you are testing with a device that uses the same Google account as your developer account. Though you can always activate your app and then deactivate it (do not delete it).
You can always upload a new file to update your program.
I've added the lic code but when I install my app using a USB cable to my device, I get an error "Runtime Exception: NoSuchFieldException: _ptaf_xxx_test_1" Continue? I've declared this var so I don't know why it's complaining.
B4X:
Dim lc As LicenseChecker
Dim pid As PhoneId
Dim pTaf_xxx_test_1 As String
lc.Initialize("lc", pid.GetDeviceId, publicKey, "xxx1011x".GetBytes("UTF8"))
lc.SetVariableAndValue("pTaf_xxx_test_1", "xxx1011xxxx")
lc.CheckAccess
Msgbox(pid.GetDeviceId,"GetDeviceId License")
So, the idea here with the lc.SetVariableAndValue() variable is to check its value somewhere to make sure the var equals its intended value? And if not close the app, perhaps with a message?