> For the complete documentation index, see [llms.txt](https://docs.vida.id/identity-stack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vida.id/identity-stack/authentication/authentication-factors/biometric-device-selfie-id/integration-methods/selfie-id-api/sdk/android-sdk/getting-started.md).

# Getting Started

## **Prerequisites**

Getting Activation Key

In order to access the VIDA SDK, you will need a Activation Key

{% hint style="info" %}
**Contact Vida Support**

If you haven't got the Activation Key, you can reach out to [<mark style="color:blue;">VIDA support team.</mark>](mailto:support@vida.id)
{% endhint %}

### **Add the Required Permissions**

In your app's `AndroidManifest.xml` file, add the following permissions

```xml
<uses-feature android:name="android.hardware.camera.any" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
```

### **Add the Vida Repository**

In your project's `build.gradle` file, add the following code to include Vida's repository and credentials:

```groovy
//Sandbox endpoint : https://sdk-repo.dev.vida.id/android 
//Production Endpoint : https://sdk-repo.vida.id/android

maven {

  url "https://sdk-repo.dev.vida.id/android" 
  credentials(HttpHeaderCredentials) {
      name = "x-api-key"
      value = "REPO-API-KEY"
  }
  authentication {
      header(HttpHeaderAuthentication)
  }
}

```

### **Add the Vida Liveness Detection SDK Dependency**

In your app's `build.gradle` file, add the following code to include the SDK dependency

```groovy
//For production 
implementation "id.vida:auth:X.Y.Z"

//For Sandbox 
implementation "id.vida:auth-sandbox:X.Y.Z"
```

### **Add SDK Activation Key**

In your application's `AndroidManifest.xml` file, add the SDK activation key

```xml
<meta-data android:name="vida_activation_key" android:value="VIDA-ACTIVATION_KEY" />
```

Replace `VIDA-ACTIVATION_KEY` with the activation key provided by Vida.
