> For the complete documentation index, see [llms.txt](https://docs.live2.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.live2.ai/live2.ai-integration/android-sdk/getting-started-with-android-sdk/site-sections-android/window-android.md).

# Window ( Android)

## Setting Up `Window`

To set up the Window, the host application must invoke the `init()` function, which requires both the context and the embed Id. These are essential fields, embed id  can be obtained from the live2.ai dashboard.

```kotlin
Kotlin:

val storyWindowView: SiteSectionContainer = findViewById(R.id.StoryWindowView)
storyWindowView.init(context = this, embedId = Constants.STORY_WINDOW_EMBED)
```

## Window Layout

&#x20;XML Layout:

```xml
<com.live2.media.ui.container.SiteSectionContainer
                android:id="@+id/StoryWindowView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                app:enablePreview="true"
                app:showTitle="true"
                app:viewType="StoryWindowView" />
```

* Enabling video previews on the L1 screen: Set `app:enablePreview="true"` to allow video previews on the L1 screen.
* Disabling video previews on the L1 screen: Set `app:enablePreview="false"` to prevent video previews from being displayed on the L1 screen.
