I was busy with a project and wanted to allow users to enter their own Key/Token via the B4A manifest file and then have access to the key/token via B4A code. I did a quick search and could not find something immediately and then did the below/attached via inline Java code that I found somewhere...
Private Sub GetTargetSdkVersion As Int
Dim ctxt As JavaObject
ctxt.InitializeContext
Return ctxt.RunMethodJO("getApplicationInfo", Null).GetField("targetSdkVersion")
End Sub