# App Startup Initializers

The UI Components library relies on Jetpack [App Startup](https://developer.android.com/topic/libraries/app-startup) Initializers to initialize certain components. These run automatically when you include the UI Components library and start your application.

In some cases, you might wish to prevent the automatic initialization, for example, to decrease your app's initial startup time. You can do this by following the [Manually initialize components](https://developer.android.com/topic/libraries/app-startup#manual) guide from the Android Developers documentation.

<admonition type="warning">

Removing the automatic initializers and not running the initializers manually will result in crashes when using the UI Components.

</admonition>

Specifically, you'll have to do the following:

1. Disable the auto-initialization of our components, by adding the following to your Manifest:

   ```xml
   <provider
       android:name="androidx.startup.InitializationProvider"
       android:authorities="${applicationId}.androidx-startup"
       android:exported="false"
       tools:node="merge">
       <meta-data
           android:name="com.getstream.sdk.chat.startup.ThreeTenInitializer"
           tools:node="remove"
       />
       <meta-data
           android:name="io.getstream.chat.android.ui.common.ChatUIInitializer"
           tools:node="remove"
       />
   </provider>
   ```

2. Initialize them manually, **before any of the Stream UI Components are used in your application**.

<tabs>

<tabs-item value="kotlin" label="Kotlin">

```kotlin
AppInitializer.getInstance(appContext).run {
    initializeComponent(ThreeTenInitializer::class.java)
    initializeComponent(ChatUIInitializer::class.java)
}
```

</tabs-item>

<tabs-item value="java" label="Java">

```java
AppInitializer.getInstance(appContext).initializeComponent(ThreeTenInitializer.class);
AppInitializer.getInstance(appContext).initializeComponent(ChatUIInitializer.class);
```

</tabs-item>

</tabs>

<admonition type="note">

You need to have a dependency on the [App Startup library](https://developer.android.com/jetpack/androidx/releases/startup) to access `AppInitializer`.

</admonition>


---

This page was last updated at 2026-03-05T19:01:46.501Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/android/v5/ui/guides/app-startup-initializers/](https://getstream.io/chat/docs/sdk/android/v5/ui/guides/app-startup-initializers/).