Android Question when to use Reflector and JavaObject or Do Wrapper in java

Roberto P.

Well-Known Member
Licensed User
Longtime User
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
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

Roberto P.

Well-Known Member
Licensed User
Longtime User
thanks Erel, of course.

as regards development environment, only Eclipse?
 
Upvote 0
Top