Embed the Meeting UI into another activity
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.
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>
- The
MyMeetingActivityinstance cannot be a sub activity of other activities. It needs to bounded outside of other activities. Other activities can be sub activities ofMyMeetingActivity. - The process where the
MyMeetingActivityislocated will auto-restart in several situations.- For example:
- Disconnection of meeting service
- Crashing of meeting service
- For example:
Meeting is needed
MyMeetingActivity won't be trigger if there is no meeting. Make sure your meeting is valid before calling MyMeetingActivity.