# Android

#### Prerequisites

* Java JDK. Not installed yet? [Follow this tutorial](https://www.oracle.com/java/technologies/downloads/#java8).
* Android Studio IDE. Not installed yet? [Follow this tutorial](https://developer.android.com/studio).

#### **I**nstall and Create Application <a href="#install" id="install"></a>

1. Download the Antares Library for Android by clicking the button below and extract. Save the .jar library to your computer's local storage.

{% file src="/files/AJCfjov5WjiwXYiXhPEA" %}

2. Click "Start a new Android Studio Project".

<figure><img src="/files/6h3eDYZNp2uC9FDMinsX" alt=""><figcaption></figcaption></figure>

3. Define your Activity. We recommend you to choose "Empty Activity".

<figure><img src="/files/fcdzRcyfdYUGeHa4lGha" alt=""><figcaption></figcaption></figure>

4. Give your app a name<br>

<figure><img src="/files/TY5Qb12q8jeOtTQlNSIF" alt=""><figcaption></figcaption></figure>

5. Click on the "Android" section and move the layout to "Project".

<figure><img src="/files/CBc1b4p09WGgZ6NwuDhX" alt=""><figcaption></figcaption></figure>

6. Copy-Paste the downloaded library jar into app -> libs.

<figure><img src="/files/oZhEZM0vE7H6FBXe4usK" alt=""><figcaption></figcaption></figure>

7. Congratulations! You have inserted the library jar.<br>

<figure><img src="/files/1hVLFHugfKvSOYVj5fob" alt=""><figcaption></figcaption></figure>


---

# 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://docs.antares.id/en/code-and-library-examples/android.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.
