Roberto P. Well-Known Member Licensed User Longtime User Nov 28, 2019 #1 I saw that the cameraEx class that was completely created using the Reflector and JavaObject object to access the library methods rather than creating an external Java library. Can you explain me when to use this method or when to create an external library? Another question: to create external libraries can we only use Eclipse or can we use the more modern IntelliJ idea system? thank in advance
I saw that the cameraEx class that was completely created using the Reflector and JavaObject object to access the library methods rather than creating an external Java library. Can you explain me when to use this method or when to create an external library? Another question: to create external libraries can we only use Eclipse or can we use the more modern IntelliJ idea system? thank in advance
Erel B4X founder Staff member Licensed User Longtime User Nov 28, 2019 #2 There are actually three options: 1. JavaObject (and sometimes Reflector). 2. Inline Java. 3. External library. There are all kinds of factors to consider and in many cases there is more than one good option. For small things JavaObject is probably best. If you don't need to write a lot of native code then JavaObject + inline Java inside a class is a good option. If you do need to write a lot of code or the library is provided as source code then an external library is a good option. Upvote 0
There are actually three options: 1. JavaObject (and sometimes Reflector). 2. Inline Java. 3. External library. There are all kinds of factors to consider and in many cases there is more than one good option. For small things JavaObject is probably best. If you don't need to write a lot of native code then JavaObject + inline Java inside a class is a good option. If you do need to write a lot of code or the library is provided as source code then an external library is a good option.
Roberto P. Well-Known Member Licensed User Longtime User Nov 29, 2019 #3 thanks Erel, of course. as regards development environment, only Eclipse? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 1, 2019 #4 Roberto P. said: as regards development environment, only Eclipse? Click to expand... No. You can use any editor you like and build the XML file and Jar with SLC. Upvote 0
Roberto P. said: as regards development environment, only Eclipse? Click to expand... No. You can use any editor you like and build the XML file and Jar with SLC.