I want to create an instance of a B4J Class with JavaObject. I'm using the InitializeNewInstance method to create a new instance, but the B4J class Initialize method is never called.
To call the explicit "_initialize" method I need the BA object (is this the right approach?)
How to create an instance of a B4J Class with JavaObject?
B4X:
Dim jo As JavaObject
' jo.InitializeContext 'This is not working in B4J
jo = jo.InitializeNewInstance("b4j.example.myclass",Null)
Log(jo) 'The Initialize method is not executed
To call the explicit "_initialize" method I need the BA object (is this the right approach?)
How to create an instance of a B4J Class with JavaObject?