aaronk Well-Known Member Licensed User Longtime User Jan 19, 2013 #1 Hello, I would normally use the following code below to create my object using Java, but I would like to know how can I call it in B4A? B4X: Checker uc = new Checker(this, "one", "two", "three"); So far I have done the following and it allows me to dim the lib but I don't know how to load/include the code above. B4X: Dim Checker as MyChecker Anyone got any ideas?
Hello, I would normally use the following code below to create my object using Java, but I would like to know how can I call it in B4A? B4X: Checker uc = new Checker(this, "one", "two", "three"); So far I have done the following and it allows me to dim the lib but I don't know how to load/include the code above. B4X: Dim Checker as MyChecker Anyone got any ideas?
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2013 #2 The constructor cannot have any parameters. You can create an Initialize method that actually creates the object (in that case consider extending AbsObjectWrapper).
The constructor cannot have any parameters. You can create an Initialize method that actually creates the object (in that case consider extending AbsObjectWrapper).