# Native Android SDK

{% hint style="warning" %}
*The latest Stable Version is V2.1*
{% endhint %}

### Let's Get your Android App running with FACEKI SDK

### Requirements

{% embed url="<https://github.com/faceki/KYC-Android-Native-V2>" %}
Github KYC Android Studio Native files
{% endembed %}

**In order to run the example project, you can change client\_id and client\_secret inside SdkSetting.kt**

#### [Android Studio](https://developer.android.com/studio)&#x20;

Android Studio provides the fastest tools for building apps on every type of Android device.

#### [Kotlin](https://kotlinlang.org/docs/releases.html) Language

Kotlin is a cross-platform, statically typed, general-purpose programming language with type inference. Kotlin is designed to interoperate fully with Java, and the JVM version of Kotlin's standard library depends on the Java Class Library, but type inference allows its syntax to be more concise. [Wikipedia](https://en.wikipedia.org/wiki/Kotlin_\(programming_language\))<br>

### Check [Getting Started](/getting-started.md)&#x20;

### Steps

1. Install the Latest Android Studio and Kotlin Language
2. To use Faceki API, you need to register any of [Faceki packages on the link](https://apps.faceki.com/pricing) and then access  [Dashboard](https://apps.faceki.com/) >> Integration >> [Client-ID](<https://apps.faceki.com/integration/client-id >)
3. . Click on the hidden eyes and securely copy the **Client ID** (token).

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

{% hint style="info" %}
Please don't share the token with anybody, highly secure and confidential&#x20;
{% endhint %}

4\. Edit this to your Project's Main build.gradle in repositories block

```
maven { url 'https://jitpack.io' }
```

![](/files/VVYFX5CqonGUNU9o76OX)

"OR" put it in Settings.gradle in repositories block as follow:

```
dependencyResolutionManagement 
{
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories 
{
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
```

![](/files/LkVM2G15KCxG8HCxd5MA)

5\. Add this to your app level build.gradle android block.

```java
compileOptions {
         sourceCompatibility JavaVersion.VERSION_1_8
         targetCompatibility JavaVersion.VERSION_1_8
     }

     kotlinOptions {
         jvmTarget = '1.8'
     }
```

![](/files/alpKdBElTDth0klwAraW)

6\. Add this to your app level build.gradle dependencies block

```java
implementation 'com.github.faceki:KYC-Android-Native-V2:$Version'
```

![](/files/2Gz22ammTIftMdAFPlyH)

{% hint style="info" %}
Add this to your app level build.gradle defaultConfig block&#x20;

{% hint style="info" %}

```java
minSdkVersion 24
```

{% endhint %}
{% endhint %}

7\. Sync your project.

{% hint style="info" %}
Refer to integration to register get the token and paste&#x20;
{% endhint %}

8\. Add the below code in your project file wherever you want to initialize sdk:

```
import com.facekikycverification.startup.FacekiVerification
```

#### Kotlin

```
var facekiVerification: FacekiVerification? = null
facekiVerification = FacekiVerification()
facekiVerification!!.initiateSMSDK(this, "YOUR_CLIENT_ID", "CLIENT-SECERT")
```

![](/files/i774ue75TbmW2zgP3tRh)

#### Java

```
FacekiVerification facekiVerification = null;
facekiVerification = new FacekiVerification();
facekiVerification.initiateSMSDK(this, "YOUR_CLIENT_ID", "CLIENT-SECERT");
```

### Arabic Language&#x20;

To disable the Arabic language, You can simply rename or delete this folder

```
 "/src/main/res/values-ar"
```

### Edit Splash Screen

To change the Splash screen, just replace the image with your splash image here

```
"/src/main/res/drawable/splash.png"
```

### API Response

To intercept with login, signup and KYC and SDK settings API response, you can make required changes in corresponding API calls in&#x20;

```
"/faceki/src/main/java/com/facekikycverification/network/ApiCall.kt" file
```

#### Video Demonstration&#x20;

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

#### You can also check out FACEKI's <img src="/files/wd3onXMzubZBcHScGA2v" alt="" data-size="line">Github <img src="/files/vjAMxR4F4m0YWUJdt6y4" alt="" data-size="line">


---

# 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://kycdocv2.faceki.com/mobile-sdk/native-android-sdk.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.
