Android Question External jar Libraries

Krammig

Member
Licensed User
Longtime User
I have two situations and would appreciate feedback as to whether what I have described below is achievable. thanks

a)
I have been provided a set of jar files from a hardware manufacturer to enable integration of the hardware into an Android app. I have successfully written a simple Android app within Eclipse calling the jar file (to use the hardware), and that all work fine.

I would now like to create the main app using B4PPC and to be able to call the functions in the manufacturers original jar file.

Can this be done simply and is there a demo somewhere to show me how.


b)
I have a VB6 main app, plus a few DLL's I wrote also in VB6.

I would like to move all these to B4PPC and can proceed to do that however I have a few questions regards the DLL's as far as External Libraries are concerned. Namely can I create Libraries using B4PPC in a similar manner to the VB environment.
These DLL's have parameters passed to them, they performs tasks (lets say file and data handling and comms to a server) and then pass data back to the Main app.

Questions ;

i)
using B4PPC as the Main app, and B4PPC as the Library (replacing the DLL), can I build the same environment.

ii)
using B4PPC as the Main app, and writing a similar Library to my VB DLL but using Java via Android Eclipse, can the B4PPC app call and use this jar file

iii)
Using Android Eclipse to create an Android app, and then writing a similar Library to my VB DLL using B4PPC, can the Android app call and use the Library written in B4PPC

Thanks in advance
Harry
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Krammig

Member
Licensed User
Longtime User
Thanks for the reply Erel, apologies for the mis-name.

So just in summary then and specifically of importance to me, can I use a normal (third party or Android Eclipse created) jar file from with B4A ?

thanks
Harry
 
Upvote 0

Wien.Mart

Member
Licensed User
Longtime User
Hi Manfred,

You mentioned that I can use non-B4A libraries but need to create a wrapper library for this. Please share an example on how to do this or is this covered by Erel's tutorial?

Thanks,

Martin
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
It´s described here.
 
Upvote 0
Top