> For the complete documentation index, see [llms.txt](https://docs.drivequant.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.drivequant.com/challenge/user-interface/android/get-started.md).

# Get started

## **Prerequisite**

Before starting DriveKit Challenge UI integration, make sure that you have initialized [Challenge](/challenge/android/get-started.md) and [Common UI](/common-ui/android/get-started.md) components.

## **Integration**

To add Challenge UI module to your app, add the following line to your dependencies in your application build.gradle file:

```gradle
dependencies {
    implementation 'com.drivequant.drivekit:drivekit-challenge-ui:$drivekitui_version'
}
```

{% hint style="info" %}
Replace `$drivekitui_version` with the DriveKit version you are using in your app
{% endhint %}

{% hint style="info" %}
On [this Github repository](https://github.com/DriveQuantPublic/drivekit-ui-android), you can find also a demo application that contains the DriveKit challenge component. This code is open source and you can use it as an example.
{% endhint %}

## Initialization

If you have [disabled the SDK auto-initialization](/get-started-drivekit/android/advanced-configurations.md#manually-initialize-the-sdk), the Challenge UI module must also be manually initialized.

Then, to initialize the module in your app, you must call the initialization method in `onCreate` method of your Application class:

{% tabs %}
{% tab title="ChallengeUI" %}

```kotlin
fun initialize()
```

{% endtab %}
{% endtabs %}

## **Display Challenge list**

To be able to get the list of Challenge in your application, you need to use this following method:

{% tabs %}
{% tab title="Kotlin" %}

```kotlin
ChallengeUI.startChallengeActivity(context: Context)
```

{% endtab %}

{% tab title="Java" %}

```
ChallengeUI.INSTANCE.startChallengeActivity(Context context);
```

{% endtab %}
{% endtabs %}

This method will automatically synchronize challenge data and start a new activity with our default implementation.

You can also use the challenge list fragment

{% tabs %}
{% tab title="Kotlin" %}

```kotlin
ChallengeUI.createChallengeListFragment()
```

{% endtab %}

{% tab title="Java" %}

```
ChallengeUI.INSTANCE.createChallengeListFragment();
```

{% endtab %}
{% endtabs %}
