Load APK
Kalipso - Form - Actions - Actions Description - Group Others - Load APK
Loads a specified APK or JAR library, so you can invoke functions from the library.
Action available for the following operating systems:
Parameters
APK File <string> - The full path and name of the JAR or APK file to load.
This library can include binary files. If it is an APK file, Kalipso will extract the binary files in the "lib" folder so they can be used.
If the library does contain binary files, then you can only call LoadAPK 1 time for the same library, because native libraries can only be loaded once, and will not be unloaded while the App is running. This may also prevent the update of the APK while the App is executing, the App may need to be restarted manually, so the App must be closed and restarted manually by the user.
If you are using a JAR library, it needs to contain the classes.dex file for Android, but it is usually preferable to compile an APK for Android.
The library is loaded using Android DexClassLoader: https://developer.android.com/reference/dalvik/system/DexClassLoader
Android documentation quote: "A class loader that loads classes from .jar and .apk files containing a classes.dex entry. This can be used to execute code not installed as part of an application."
Last updated