Android Question Load library dynamically

apty

Active Member
Licensed User
Longtime User
Is it possible to execute code that depends on a library that is outside the application? For example, if i have a library that adds two numbers (a+b), can i have this jar on phone storage/sdcard and execute the code in my b4a app?
 

DonManfred

Expert
Licensed User
Longtime User
No. The jar must be exists on your dev pc to be installed correctly when installing the app.
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
The first version of Vitamio published here on the forum required libraries installed from another app. My wrapper of Vitamio checked if the libraries were installed and if not it prompted user to download them. The app had to be restarted though..

Also with OpenCV a similar approach can be used.
 
Upvote 0

apty

Active Member
Licensed User
Longtime User
The library has very sensitive information. If i include it in the app, a decompilation will show everything. I thought it would be possible to load it dynamically, use it, then delete it once the user closes my app
 
Upvote 0

apty

Active Member
Licensed User
Longtime User
There's a way the data is processed inside the library. For this data to be processed, i have to call an external library in code, the do some stuff with the data. So, the library in question actually references another library to process the data.(The basic flow is libraryB --->imports classes from libraryA to process the data-->Use this information in B4A app to process user data
 
Upvote 0
Top