# Load APK

Loads a specified APK or JAR library, so you can invoke functions from the library.

Action available for the following operating systems:

![](/files/-MRyMmurYkr5sJQek1Ij)

### Parameters

* **APK File** *\<string> -* The full path and name of the JAR or APK file to load.

{% hint style="info" %}
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.
{% endhint %}

{% hint style="info" %}
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.
{% endhint %}

{% hint style="info" %}
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.
{% endhint %}

{% hint style="info" %}
The library is loaded using Android DexClassLoader: <https://developer.android.com/reference/dalvik/system/DexClassLoader>
{% endhint %}

{% hint style="info" %}
Android documentation quote:\
\&#xNAN;**"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."**
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/kalipso5/developing/form/actions/actions-description/group-others/load-apk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
