> For the complete documentation index, see [llms.txt](https://docs.avataar.ai/knowledge-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avataar.ai/knowledge-center/developer-documentation/how-to-integrate-avataar-experiences/integration-with-android-renderer.md).

# Integration with Android Renderer

## Pre-requisites:

* Android Studio - A developer’s tool to build the application.

## Integration :&#x20;

1. To include the JitPack repository in your project, add the following code at the end of the repositories section in your root build.gradle or settings.gradle file:

*allprojects {*

*repositories {*

*...*

*maven { url '<https://jitpack.io>' }*

*}*

*}*

<figure><img src="https://lh3.googleusercontent.com/5-lcsq1e5p_sxNmhYWqQAzrIp_fSuMfiTg-CyF-fzJ7NdyVTx6iDOtiE0SY7gg89MHg4JmH7V-kBf4ODYGahAwkI-D2q19dXsio21HRyFwOb4R15tWVtN1RZX34Pml_jTkFZjIryi8WXfJQWfNV-OO8" alt=""><figcaption></figcaption></figure>

2. Include the following dependency in your build.gradle (Module.app) to integrate the library:&#x20;

*dependencies {*

&#x20;   *implementation 'com.github.SoulVisionCreations:gemini-android:1.1.7'*

*}*

3. To open Avataar's experience, add the following code at the desired location where you want to integrate the 3D experience:

*val intent = Intent(this, PolluxActivity::class.java)*

*intent.putExtra("configUrl", "Value of configUrl")*

*intent.putExtra(“token”,”Authentication token”)*

*startActivity(intent)*

### Note :

* Please ensure to replace the "Value of configUrl" with the actual configUrl which can be copied from Avataar Web Application.&#x20;
* The authentication token has to be replaced by actual authentication token which will be provided from Avataar team. &#x20;

## Sample :&#x20;

Here's a sample code demonstrating the entire integration, where we enable the Avataar experience as a different activity:

<figure><img src="https://lh5.googleusercontent.com/L3mX4pStCosBJwG6CEtXmwzDnuCjs4fC4_V6ttN6y4LqptpSSlf9CHKwHDKa48T-bgjWEstZ51X3nV9HywUD-4iooguuftxQJWvtOaEW9QLCH9nrF-JQDiLJ74wlLj9ZJvIAVtbPUkd4BHpgnl1x5ig" alt=""><figcaption></figcaption></figure>

\ <br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.avataar.ai/knowledge-center/developer-documentation/how-to-integrate-avataar-experiences/integration-with-android-renderer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
