Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private mobjSomething As clsSomething
Private mReflector As Reflector
End Sub
Public Sub Initialize
' B4XPages.GetManager.LogEvents = True
mobjSomething.Initialize
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Private Sub Button1_Click
mReflector.Target = mobjSomething
mReflector.RunMethod("LogText")
mReflector.RunMethod2("LogText2", "Ciao", "java.lang.String")
End Sub