# \[Android\] embed zoom video into android ViewPager

**URL:** <https://devforum.zoom.us/t/android-embed-zoom-video-into-android-viewpager/16494>\
**Category:** Android\
**Created:** [May 7, 2020, 1:40am UTC](https://devforum.zoom.us/t/android-embed-zoom-video-into-android-viewpager/16494 "2020-05-07T01:40:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerger](https://avatars.discourse-cdn.com/v4/letter/g/ecd19e/32.png) [@gerger](https://devforum.zoom.us/u/gerger)\
**Post date:** [May 7, 2020, 1:40am UTC](https://devforum.zoom.us/t/android-embed-zoom-video-into-android-viewpager/16494/1 "2020-05-07T01:40:31Z")

</div>

**Description**

Hello,

I want to embed the zoom meeting view into an android ViewPager, to allow users to change different zoom meetings when swiping left and right.

However, seems from the SDK demo app, both the default zoom UI and custom UI extends the zoom base activities (`MeetingActivity` and `ZMActivity`), so I’m unable to fit it into my ViewPager. Is it possible to put the zoom meeting view into a fragment, and then I can load it into my ViewPager?

Thank you!

**Which version?**  
the latest version I just downloaded today

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 9, 2020, 2:32am UTC](https://devforum.zoom.us/t/android-embed-zoom-video-into-android-viewpager/16494/2 "2020-05-09T02:32:09Z")

</div>

Hi [gerger](https://devforum.zoom.us/u/gerger),

Thanks for using Zoom SDK. If you are using Custom UI, there are no restrictions on this, you could extend regular activities and do the way you prefer. Zoom default UI might not be able to do the way you are mentioning.

Thanks!

---

<div class="post-metadata">

**Author:** ![gerger](https://avatars.discourse-cdn.com/v4/letter/g/ecd19e/32.png) [@gerger](https://devforum.zoom.us/u/gerger)\
**Post date:** [May 11, 2020, 7:17pm UTC](https://devforum.zoom.us/t/android-embed-zoom-video-into-android-viewpager/16494/3 "2020-05-11T19:17:48Z")

</div>

Hi Carson,

Thanks for your reply! So do you mean that I can apply the Zoom Custom UI without extending the Zoom SDK’s `ZMActivity`? Then how can I join / start a zoom meeting? I can’t find any example in the two zoom demo apps, can you provide some more details on the custom UI? I have read the documentations about custom UI here: [https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/in-meeting-function/customized-meeting-ui/overview](https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/in-meeting-function/customized-meeting-ui/overview)

Thank you!  
Gerger

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 15, 2020, 12:12am UTC](https://devforum.zoom.us/t/android-embed-zoom-video-into-android-viewpager/16494/4 "2020-05-15T00:12:46Z")

</div>

Hi Gerger,

Thanks for the reply. The start/join meeting for both Zoom default UI and the Custom UI is the same, for Custom UI, you just need to:

1. Tell SDK that you are going to use Custom UI so SDK will not show Zoom default UI when the meeting starts: [https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/MeetingSettingActivity.java#L178](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/MeetingSettingActivity.java#L178)
2. When starting or joining a meeting, present the customized UI: [https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/LoginUserStartJoinMeetingActivity.java#L279](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/LoginUserStartJoinMeetingActivity.java#L279)
3. You may refer to the implementation in the following classes: [https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/LoginUserStartJoinMeetingActivity.java](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/LoginUserStartJoinMeetingActivity.java) or [https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/InitAuthSDKActivity.java](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/InitAuthSDKActivity.java)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:18pm UTC](https://devforum.zoom.us/t/android-embed-zoom-video-into-android-viewpager/16494/5 "2020-08-21T21:18:59Z")

</div>


