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

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
OK Thank You!

So Can I do This:

[CODE lang="b4x" title="To add LIB:"]#BridgeLogger: True
#AdditionalJar: eftterminalzvt-debug.aar[/CODE]

And after:
[CODE lang="b4x" title="To Create Object from:"]Dim OBJMonera As JavaObject
OBJMonera = M.InitializeStatic("hu.monera.eftterminalzvt.EftTerminalZVT")[/CODE]

And Call functions (if I found funct. names) with JavaObject.RunMethod?
 
Upvote 0
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:
[CODE lang="b4x" title="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)[/CODE]
 
Upvote 0
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
Back
Top