You can use this code (requires the Reflection library):
B4X:
Sub Process_Globals
Dim debugMode As Boolean
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
Dim r As Reflector
debugMode = r.GetStaticField("anywheresoftware.b4a.BA", "debugMode")
End If
Log(debugMode)
End Sub
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.