Android Question AAR file usage

Asoka

Member
Licensed User
Longtime User
Hi Friends!

I've an "AAR" file to manage a HW in my planned project (kios terminal with POS payment).
The file is the manufacturer's LIB to (connect, pay, ... etc) POS device.

What is the best way to use this library in B4A(v9.50):
Can I import directly as AdditionalJar and find the Classes path?
Do I have convert (or rename) it to jar file?
Pls Help!

Thank you!
 

Attachments

  • eftterminalzvt-debug.zip
    388.7 KB · Views: 175

DonManfred

Expert
Licensed User
Longtime User
Can I import directly as AdditionalJar
yes
and find the Classes path?
No.

See this Tutorial. Note that you need some java knowledge do use it.
 
Upvote 0

Asoka

Member
Licensed User
Longtime User
OK Thank You!

So Can I do This:

To add LIB::
#BridgeLogger: True
#AdditionalJar: eftterminalzvt-debug.aar

And after:
To Create Object from::
Dim OBJMonera As JavaObject
OBJMonera = M.InitializeStatic("hu.monera.eftterminalzvt.EftTerminalZVT")

And Call functions (if I found funct. names) with JavaObject.RunMethod?
 
Upvote 0

Asoka

Member
Licensed User
Longtime User
I cant answer this question. You need to consult their documentation.

Note that you should only use InitializeStatic on static Classes.

Usually you need to use InitializeNewInstance

InitializeNewInstance not working, but:
OBJMonera (is a Process_Globals variable) IsInitialized: True:
Dim M As JavaObject
M.InitializeContext
OBJMonera = M.InitializeStatic("hu.monera.eftterminalzvt.EftTerminalZVT")
Log("MoneraOBJ Init: " & OBJMonera.IsInitialized)
 
Upvote 0

Asoka

Member
Licensed User
Longtime User
in file: eftterminalzvt-debug.aar (if I see unzipped) there is a file named "classes.jar".
do I have to do something with it?
 
Upvote 0
Top