Android Question How to use B4xlib files?

ansari

Member
Hello.
Is it possible to use B4xlib files in B4a?
For example, how can I use the ASClock.b4xlib library in my project?
 

Attachments

  • ASClock.b4xlib
    3.1 KB · Views: 4

Sagenut

Expert
Licensed User
Longtime User
You must create a folder for Additional Libraries.
Here you will find the suggested structure
https://www.b4x.com/android/forum/threads/b4x-additional-libraries-folder.103165/
Of course you can create it in any path (just not under Program Files).
Put libraries that are compatible with only a specific ide in their respective folder.
Cross platforms libraries, like the one you are asking about, must be put under the B4X folder.
In this way they will appear in all the IDE in the libraries tab.
If the libraries is a Custom View, after selecting it from the libraries tab you will then find it on the Designer in the menu
Views >>> Custom Views
 
Upvote 0

Mark Stuart

Active Member
Licensed User
Longtime User
Hi Ansari.
I think you're on your way to find libraries. Good.

Background:
Typically, when a library is posted in the forum, it comes with the library files. For example: .jar and .xml files. These are built with a Java development tool. These go into the Additional Libraries folder on the development computer you have B4A installed, or if you have other drives available, the Additional Libraries folder can go there also.
But you only have one of these folders for each B4X development tool. It's up to you where you want those files stored.

The other type of library is the one you've found, with the file extension of .b4xlib.
These type of libraries are built with the development tool itself - for example: B4A.
They also go into the Additional Libraries folder, unless the author specifically states otherwise.

Use of The Library
If the library is available, so is an example app project together in the same post. This is how the author shows how the library is implemented.
Download the libraries to the folder mentioned above. Unzip the B4X project to another folder - wherever you like.
Open the project and run it in Debug mode. Follow along to see how it works. Place a debug stop in the code and step thru it.
You will see and learn from there.

Implementing into Your Project
That's where the "fun" begins.
Once you understand how the library works and all it's properties and methods, then you can move ahead with confidence and place it into your project.
Always know that you can come back to the forum for help. If it's a new library, posting to the original post is best, but most people think you should make a new post. If you do make a new post, its best to refer back to the original post with either a link or obviously the name of the library and post title.

Just some heads up on how to proceed.
Make it fun and the hours building B4X projects will go by fast.

All the best
Mark
 
Last edited:
Upvote 0

ansari

Member
You must create a folder for Additional Libraries.
Here you will find the suggested structure
https://www.b4x.com/android/forum/threads/b4x-additional-libraries-folder.103165/
Of course you can create it in any path (just not under Program Files).
Put libraries that are compatible with only a specific ide in their respective folder.
Cross platforms libraries, like the one you are asking about, must be put under the B4X folder.
In this way they will appear in all the IDE in the libraries tab.
If the libraries is a Custom View, after selecting it from the libraries tab you will then find it on the Designer in the menu
Views >>> Custom Views
Hello my friend
Your explanations were very useful and educational for me.
Good luck.
 
Upvote 0

ansari

Member
Hi Ansari.
I think you're on your way to find libraries. Good.

Background:
Typically, when a library is posted in the forum, it comes with the library files. For example: .jar and .xml files. These are built with a Java development tool. These go into the Additional Libraries folder on the development computer you have B4A installed, or if you have other drives available, the Additional Libraries folder can go there also.
But you only have one of these folders for each B4X development tool. It's up to you where you want those files stored.

The other type of library is the one you've found, with the file extension of .b4xlib.
These type of libraries are built with the development tool itself - for example: B4A.
They also go into the Additional Libraries folder, unless the author specifically states otherwise.

Use of The Library
If the library is available, so is an example app project together in the same post. This is how the author shows how the library is implemented.
Download the libraries to the folder mentioned above. Unzip the B4X project to another folder - wherever you like.
Open the project and run it in Debug mode. Follow along to see how it works. Place a debug stop in the code and step thru it.
You will see and learn from there.

Implementing into Your Project
That's where the "fun" begins.
Once you understand how the library works and all it's properties and methods, then you can move ahead with confidence and place it into your project.
Always know that you can come back to the forum for help. If it's a new library, posting to the original post is best, but most people think you should make a new post. If you do make a new post, its best to refer back to the original post with either a link or obviously the name of the library and post title.

Just some heads up on how to proceed.
Make it fun and the hours building B4X projects will go by fast.

All the best
Mark
Hello my friend
Your explanations were very useful and educational for me.
Good luck.
 
Upvote 0
Top