Android Question What actuall happens when we use a Library at compile time

Indic Software

Active Member
Licensed User
Hello,

I would like to understand as to what actually happens when we add a Library to our B4A project...

I mean if we are not using the Lib what happens and if we are using the Lib what happens?

Does the Lib get compiled in the final APK or what?

Regards,

Yogesh
 

ronell

Well-Known Member
Licensed User
Longtime User
I would like to understand as to what actually happens when we add a Library to our B4A project...
saves time, easy to implement methods.. will make your app looks good , but you will gain less knowledge
its up to you if you want to use libs, if you think you can achieve something without the use of libs then do some coding , if its really hard or impossible to implement without lib then consider to use one
 
Upvote 0

Indic Software

Active Member
Licensed User
Thanks for your response. I never said I want to avoid using Libs. On the contrary I want to understand the inner working of B4A for my better understanding.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
the lib will be packaged along with all the app used resources like image files, etc..
you need to weight out the need of a lib...
for instance, there's a few libs that will increase your APK a few MB in size, even if you just need one single method from it, so you need to figure out if a "javaObject" alternative is a better compromise...
 
Upvote 0

Indic Software

Active Member
Licensed User
Thanks Cableguy, for your inputs.

Now I would be in a better position to decide as to when to use a Lib and when not to use it!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…