Embed Zoom Meeting UI into Another Activity


Contents

1. Embed Zoom Meeting UI into Another Activity

1. Embed Zoom Meeting UI into Another Activity

In some situations, you might want to embed Zoom meeting UI into another activity.

For example, if we have a meeting activity called MyMeetingActivity and we want to embed in into MainActivity so that we can run MyMeetingActivity inside MainActivity.

Firstly, you need to configure your AndroidManifest.xml, you would need to put your MyMeetingActivity into a separate process.

AndroidManifest.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>

Please note that:

  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. Please ensure your meeting is valid before calling MyMeetingActivity.