# Embed the Meeting UI into another activity

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

> The code on this page only works with the **default UI**.

In some situations, you might want to embed Zoom meeting UI into another activity. For example, you have a meeting activity called `MyMeetingActivity` and you want to embed in into `MainActivity` so that you can run `MyMeetingActivity` inside `MainActivity`.

First, to configure your `AndroidManifest.xml`, put your `MyMeetingActivity` into a separate process.

<small>AndroidManifest.xml</small>

```xml
<application android:label="@string/this_app_name"
    android:icon="@drawable/ic_launcher">

    <activity
        android:name="us.zoom.sdkexample2.MainActivity"
        android:icon="@drawable/ic_launcher"
        android:label="@string/this_app_name"
        android:screenOrientation="landscape"
        android:theme="@style/ZMTheme.MainWindow" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <activity
        android:name="us.zoom.sdkexample2.MyMeetingActivity"
        android:configChanges="orientation|screenSize"
        android:hardwareAccelerated="false"
        android:theme="@style/ZMTheme.SubWindow"
        android:screenOrientation="landscape" />

</application>
```

1. The `MyMeetingActivity` instance cannot be a sub activity of other
   activities. It needs to bounded outside of other activities. Other
   activities can be sub activities of `MyMeetingActivity`.
2. The process where the `MyMeetingActivityis` located will
   auto-restart in several situations.
    - For example:
        - Disconnection of meeting service
        - Crashing of meeting service

## Meeting is needed

`MyMeetingActivity` won't be trigger if there is no meeting. Make sure your meeting is valid before calling `MyMeetingActivity`.

---
