Android Question using aar library through java inline code...

F.Campanella

Member
Licensed User
Longtime User
Hi,
I've a 3 part library used for read with a scanner RFID data. Its sdk is an aar library.

If I put the classes.jar in the libs folder I'll be able to use his functions through java inline code?

Thanks for hour help!!
Fabio.
 

F.Campanella

Member
Licensed User
Longtime User
You don't need to extract the aar library. You can use #AdditionalJar: YourLibrary.aar (assuming that you are using B4A v6+).

Yes, I have latest version of B4A (6.30) ;)

Sorry, I take this opportunity to ask you how do I reference a class contained in the library:
If I have a class that is called RFIDResult how do I reference this class using the java inline code (and use his properties and methods)?

Thanks for you time!!!
Fabio
 
Upvote 0

somed3v3loper

Well-Known Member
Licensed User
Longtime User
As general as your question :p
B4X:
#if java
    import some.package.someclass;
    someclass someclass;
    public void bamethod(){
        someclass.somemethod();
    }
#End if
 
Upvote 0
Top