Java Question the tools to create a library in b4a

Discussion in 'Libraries developers questions' started by Markos, Mar 13, 2017.

  1. Markos

    Markos Active Member Licensed User

    Hi All,

    As I understand it the mandatory tools to create a library for use by B4a are:

    Eclipse
    doclet
    b4a IDE

    Is there any way to just use b4a code without eclipse and compiling to xml and jar using b4a ide?

    Secondly if not solely by b4a, what role does b4a IDE play in creating the Lib as I see after eclipse and doclet are completed with a build producing the xml and jar files. What does b4a compile to library do?

    Sorry for asking something obvious to most but not registering in my mind clearly as yet.

    Thanks
     
  2. klaus

    klaus Expert Licensed User

    You can compile B4A code to a Library.

    upload_2017-3-13_19-34-39.png

    This compiles your code and adds automatically the xml and jar file to the AdditionalLibraries folder.
    You may have a look at chapter 4.5 Complie to a library in the B4X Booklet CustomViews (link in my signature).
     
  3. Markos

    Markos Active Member Licensed User

    Hi
    Hi Klaus

    Thats great. It now makes sense having a compule option independent of Eclipse etc.

    Now I need to follow the rules with respect to exclusion of subs/methods and define events, methods and properties. Which tutorial or thread best illustrates these rules for me to follow or simple code sample would be great!

    I didnt see the link on your signature of that was a proactive response my question in this reply.

    Many thanx
     
  4. DonManfred

    DonManfred Expert Licensed User

    you have probably set in your privacy settings that you dont want to see signatures.... Check it here

    This is Klaus Signature

     
    klaus and MarcoRome like this.
  5. Markos

    Markos Active Member Licensed User

    Hi Klaus

    I think Im understanding the rules for creating a class as a precursor to compiling the library.

    Can I add reference to libraries in a class in b4a and b4i IDE to reference those events, methods and properties etc.
     
  6. Markos

    Markos Active Member Licensed User

    Oh I forgot to complete my question.

    If those references are usable in the class. When I compile as a library will those still be usable and if so will I have to always ensure those libraries are included to any project using my newly created library?

    Thanks
     
  7. Markos

    Markos Active Member Licensed User

    Hi All

    Is there one callback per object when ising the class events insertion into existi g events for 'native' objects?

    Why Im wonderings is if my class has different methods/subs that trigger class events that are nested in each existing event will each method call require capturing the object via a callback variable to successfully retrieve a class event.

    Thanks
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for this in the questions forum. This is sub-forum is for Java written libraries.
     
  9. Markos

    Markos Active Member Licensed User

    Please all9w me to explain better.

    My class has say 3 or more methods issued from one object that is to trigger events from an object from a referenced library. Given these facts do I need to declare more than 1 callback variable for this class object to correctly trigger and return from each of the 3 class events?
     
  10. Markos

    Markos Active Member Licensed User

    Hi Erel

    Ok will do
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice