Android Tutorial [java] Creating libraries for B4A

Avansys

Member
Licensed User
Longtime User
And respect of read the link, I read it, but I didn't understand it
Is there an example easier than the last example?
Or maybe, Is there other form for do it?
 

steynpjm

New Member
Licensed User
Longtime User
Now that we have B4J, how does it influence this thread? Is Eclipse still needed?
 

Avansys

Member
Licensed User
Longtime User
I found my error, I didn't add the paypal .jar =), but now I get this problem:



I followed the Youtube instructions, but I get this problem. In my test library I have a class that does a simple sum.
 

kepler

Active Member
Licensed User
Longtime User
Hello,

I've tryed the simple method showned, but I was only able to retrieve the xml file, not the jar....

What am I doing wrong?

Kind regards,

Kepler
 

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
I normally use the SLC, but with with library I need to use the .so files embedded in this library, I don´t know if with SLC is it possible, then I take a look in eclipse way.

What you recommend with this scenario?

B4A Library + libxxxxxx.so
How to compile with SLC?

And where is .so file is saved? The structure for that?

Thanks​
 

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Someone knows how to embedded a .jar file inside a library?

I mean, to create a library developed in Java with dependence on another, but at the end of compilation only requires a single .jar and .xml that need B4A

Example:

I create a MyLib.xml and MyLib.jar

But the MyLib.jar depends on Third.jar.


I don´t want to send separately a different library, want you to be embedded in MyLib.jar.

it's possible?

Thanks
 

cimperia

Active Member
Licensed User
Longtime User
I think it's possible. You use Jar to extract both jars and then Jar again to combine then in one Jar.

B4X:
jar -xvf MyLib.jar
jar -xvf Third.jar

rm MyLib.jar Third.jar

jar -cvf MyLib.jar
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…