Not an error from B4A as such...
I am trying to test Licensing. I have signed up for licensing, and have gotten my API key.
I have entered the license key in the app (Process_Globals)
I go into Google Play Settings and have set the License Test Response to "NOT_LICENSED"
I have saved the Google Play info changes
I have set the Gmail account I have registered on the phone as "testing access" AND also removed this account with the same result.
If I try to do anything with Licensing, I always get "NOT_MARKET_MANAGED". Fair enough I suppose, I haven't uploaded the APK.
So I'll upload the APK...
When I go to the application folder and select the APK file, and attempt to upload the _DEBUG version, the page replies with...
Upload failed
You uploaded an APK that was signed in debug mode. You need to sign your APK in release mode.
Fair enough, it IS a debug APK.
So, go back into B4A and change the DEBUG/RELEASE/RELEASE (obfuscated) drop-down to RELEASE.
Compile (Alt-1)
[Close]
F11
[Cancel download on phone]
Attempt to upload APK (Which is now NOT a debug version) to Google Play...
Error:
Upload failed
You uploaded an APK that was signed in debug mode. You need to sign your APK in release mode.
What am I doing wrong?
Dim Model As String = PhoneInfo.Model.ToLowerCase
Activity.LoadLayout("Test")
' *****************************************************************************
' Licensing
If Model = "sdk" Then
lc_Allow
Else
CheckLicense
End If
' *****************************************************************************
...
...
End Sub
Private Sub CheckLicense
Dim Checker As LicenseChecker
Checker.Initialize("lc", GetDeviceId, publicKey, "ARandomStringOfBytes".GetBytes("UTF8"))
'Checker.SetVariableAndValue("test_1", "some secret value")
Checker.CheckAccess
End Sub