# Custom Meeting UI is not been called

**URL:** <https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801>\
**Category:** Android\
**Created:** [November 27, 2017, 5:09pm UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801 "2017-11-27T17:09:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beth\_Chen](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Beth\_Chen](https://devforum.zoom.us/u/Beth_Chen)\
**Post date:** [November 27, 2017, 5:09pm UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/1 "2017-11-27T17:09:12Z")

</div>

Following SDK example2,&nbsp; I have a CustomMeetingActivity class.

It is defined in the config.xml as

```
\<resources\> 
 \<string name="zm\_config\_conf\_activity"\>com.xyz.ui.CustomMeetingActivity\</string\>
\</resources\>

And also in Manifest.xml

But when join the meeting, my CustomMeetingActivity, getLayout() is never called.

Would appreciate any help on how to load my custom layout.
```

---

<div class="post-metadata">

**Author:** ![Jacky\_Du](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jacky_du/32/63_2.png) [@Jacky\_Du](https://devforum.zoom.us/u/Jacky_Du)\
**Post date:** [November 28, 2017, 1:28am UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/2 "2017-11-28T01:28:30Z")

</div>

Hi Beth,&nbsp;&nbsp;

Could you also provide the code snippet of activity defination in your manifest and&nbsp;CustomMeestingActivity class&nbsp;implemetion. So that we can check what’s going on there.

Thanks.

---

<div class="post-metadata">

**Author:** ![Beth\_Chen](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Beth\_Chen](https://devforum.zoom.us/u/Beth_Chen)\
**Post date:** [November 28, 2017, 4:24pm UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/3 "2017-11-28T16:24:25Z")

</div>

In Manifest.xml I added this activity.

```
\<activity  
android:name="com.xyz.ui.CustomMeetingActivity"  
android:configChanges="orientation|screenSize"  
android:hardwareAccelerated="false"  
android:theme="@style/ZMTheme.SubWindow"  
android:process=":zoom\_meeting"  
android:screenOrientation="landscape" /\>

The CustomMeetingActivity class were mostly copy from example

public class CustomMeetingActivity extends MeetingActivity {

&nbsp;&nbsp;&nbsp; private Button btnLeaveZoomMeeting;
&nbsp;&nbsp;&nbsp; private Button btnSwitchToNextCamera;
&nbsp;&nbsp;&nbsp; private Button btnAudio;
&nbsp;&nbsp;&nbsp; private Button btnParticipants;
&nbsp;&nbsp;&nbsp; private Button btnShare;
&nbsp;&nbsp;&nbsp; private Button btnStopShare;
&nbsp;&nbsp;&nbsp; private Button btnMoreOptions;

&nbsp;&nbsp;&nbsp; @Override
&nbsp;&nbsp;&nbsp; protected int getLayout() {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return R.layout.activity\_custom\_av\_meeting;
&nbsp;&nbsp;&nbsp; }

&nbsp;&nbsp;&nbsp; @Override
&nbsp;&nbsp;&nbsp; protected boolean isAlwaysFullScreen() {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return false;
&nbsp;&nbsp;&nbsp; }

&nbsp;&nbsp;&nbsp; @Override
&nbsp;&nbsp;&nbsp; protected boolean isSensorOrientationEnabled() {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return false;
&nbsp;&nbsp;&nbsp; }

&nbsp;&nbsp;&nbsp; @Override
&nbsp;&nbsp;&nbsp; protected void onCreate(Bundle savedInstanceState) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; super.onCreate(savedInstanceState);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disableFullScreenMode();
&nbsp;&nbsp;&nbsp; }

&nbsp;&nbsp;&nbsp; @Override
&nbsp;&nbsp;&nbsp; public void onConfigurationChanged (Configuration newConfig) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; super.onConfigurationChanged(newConfig);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disableFullScreenMode();
&nbsp;&nbsp;&nbsp; }

&nbsp;&nbsp;&nbsp; private void disableFullScreenMode() {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getWindow().setFlags(~WindowManager.LayoutParams.FLAG\_FULLSCREEN, WindowManager.LayoutParams.FLAG\_FULLSCREEN);
&nbsp;&nbsp;&nbsp; }

&nbsp;&nbsp;&nbsp; @Override
&nbsp;&nbsp;&nbsp; public void onBackPressed() {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( getFragmentManager().getBackStackEntryCount() \> 0)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getFragmentManager().popBackStack();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; super.onBackPressed();
&nbsp;&nbsp;&nbsp; }

&nbsp;&nbsp;&nbsp; @Override
&nbsp;&nbsp;&nbsp; protected void onResume() {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; super.onResume();

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // disable animation
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; overridePendingTransition(0, 0);
&nbsp;&nbsp;&nbsp; }

//&nbsp;&nbsp;&nbsp; @Override
//&nbsp;&nbsp;&nbsp; protected void onMeetingConnected() {
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; updateButtonsStatus();
//&nbsp;&nbsp;&nbsp; }
//
//&nbsp;&nbsp;&nbsp; @Override
//&nbsp;&nbsp;&nbsp; protected void onSilentModeChanged(boolean inSilentMode) {
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; updateButtonsStatus();
//&nbsp;&nbsp;&nbsp; }
//
//&nbsp;&nbsp;&nbsp; @Override
//&nbsp;&nbsp;&nbsp; protected void onStartShare() {
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnShare.setVisibility(View.GONE);
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnStopShare.setVisibility(View.VISIBLE);
//&nbsp;&nbsp;&nbsp; }
//
//&nbsp;&nbsp;&nbsp; @Override
//&nbsp;&nbsp;&nbsp; protected void onStopShare() {
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnShare.setVisibility(View.VISIBLE);
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnStopShare.setVisibility(View.GONE);
//&nbsp;&nbsp;&nbsp; }
//
//&nbsp;&nbsp;&nbsp; private void updateButtonsStatus() {
//
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; boolean enabled = (isMeetingConnected() && !isInSilentMode());
//
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnSwitchToNextCamera.setEnabled(enabled);
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnAudio.setEnabled(enabled);
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnParticipants.setEnabled(enabled);
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnShare.setEnabled(enabled);
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnMoreOptions.setEnabled(enabled);
//
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(isSharingOut()) {
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnShare.setVisibility(View.GONE);
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnStopShare.setVisibility(View.VISIBLE);
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnShare.setVisibility(View.VISIBLE);
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; btnStopShare.setVisibility(View.GONE);
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
//&nbsp;&nbsp;&nbsp; }
}
```

---

<div class="post-metadata">

**Author:** ![Beth\_Chen](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Beth\_Chen](https://devforum.zoom.us/u/Beth_Chen)\
**Post date:** [November 28, 2017, 4:32pm UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/4 "2017-11-28T16:32:00Z")

</div>

The av meeting is launched from a fragment. The meeting starts successfully but the CustomMeetingActivity is not called.

```
public class AudioVideoMeetingFragment extends AbstractFragment implements ZoomSDKInitializeListener, MeetingServiceListener, View.OnClickListener, AppAVMeetingService.AudioVideoMeetingListener {

 public void onClickBtnJoinMeeting() {

 ZoomSDK zoomSDK = ZoomSDK.getInstance();

if (!zoomSDK.isInitialized()) {
 AppLogger.trace("ZoomSDK has not been initialized successfully");
return;
 }

 MeetingService meetingService = zoomSDK.getMeetingService();

 JoinMeetingOptions opts = new JoinMeetingOptions();
// opts.no\_driving\_mode = true;  
// opts.no\_invite = true;  
// opts.no\_meeting\_end\_message = true;  
// opts.no\_titlebar = true;  
// opts.no\_bottom\_toolbar = true;  
// opts.no\_dial\_in\_via\_phone = true;  
// opts.no\_dial\_out\_to\_phone = true;  
// opts.no\_disconnect\_audio = true;  
// opts.no\_share = true;  
// opts.invite\_options = InviteOptions.INVITE\_VIA\_EMAIL + InviteOptions.INVITE\_VIA\_SMS;  
// opts.meeting\_views\_options = MeetingViewsOptions.NO\_BUTTON\_SHARE;  
// opts.no\_audio = true;  
// opts.no\_video = true;  
// opts.no\_meeting\_error\_message = true;  
// opts.participant\_id = "participant id";  
int ret = meetingService.joinMeeting( getApplicationContext(), String.valueOf(mSpaceMeeting.getId()), mCurrentUserDisplayName, "", opts);

 }
}
```

---

<div class="post-metadata">

**Author:** ![Jacky\_Du](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jacky_du/32/63_2.png) [@Jacky\_Du](https://devforum.zoom.us/u/Jacky_Du)\
**Post date:** [November 29, 2017, 1:34am UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/5 "2017-11-29T01:34:39Z")

</div>

Hi Beth,

Your activity defination and configuration are all right. It is very strange why the function does not work. Could you please try to run our sdk demo(example2) and try to modify the activity class name/package name. Then, check if can this issue reproduce on sdk demo project.

Thanks.

---

<div class="post-metadata">

**Author:** ![Beth\_Chen](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Beth\_Chen](https://devforum.zoom.us/u/Beth_Chen)\
**Post date:** [December 8, 2017, 7:55pm UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/6 "2017-12-08T19:55:22Z")

</div>

I am back to continue on getting the custom UI working.

I am not sure what your last suggestion is. Example2 works fine. But when I added CustomMeetingActivity to my app it does not work.

Please confirm the steps to add Custom activity.

1. add resource to config.xml under Values

2. Define the activity in Manifest.xml file

When these two are in place, the CustomMeetingActivity.getLayout() should be called on start or join meeting.

One thing that my program is different from the exampl2 is that the joinMeeting is called from a fragment which started from the Main activity. The Audio Video meeting starts fine, just not loading my custom meeting layout.

---

<div class="post-metadata">

**Author:** ![Jacky\_Du](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jacky_du/32/63_2.png) [@Jacky\_Du](https://devforum.zoom.us/u/Jacky_Du)\
**Post date:** [December 11, 2017, 1:16am UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/7 "2017-12-11T01:16:48Z")

</div>

Hi Beth,

Did you define the&nbsp;“zm\_config\_conf\_activity” in your App main project so that it can override the default value in zoom sdk aar package?

---

<div class="post-metadata">

**Author:** ![Beth\_Chen](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Beth\_Chen](https://devforum.zoom.us/u/Beth_Chen)\
**Post date:** [December 11, 2017, 4:58pm UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/8 "2017-12-11T16:58:22Z")

</div>

&nbsp;

Hi Jacky

I don’t quite understand your question. My previous post listed the steps I took to add CustomMeetingActivity.&nbsp; What am I missing?

“Define the “zm\_config\_conf\_acitity” in my App main project?” Are you asking if I have CustomMeetingActivity.java class in my package? The answer is yes

&nbsp;

-Beth

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Jacky\_Du](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jacky_du/32/63_2.png) [@Jacky\_Du](https://devforum.zoom.us/u/Jacky_Du)\
**Post date:** [December 12, 2017, 1:32am UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/9 "2017-12-12T01:32:19Z")

</div>

Hi Beth,

You should confirm that the string zm\_config\_conf\_activity (you defined in your string resource) can override the default value in zoom sdk.

Please try to print the string value of&nbsp;zm\_config\_conf\_activity&nbsp; in your code and check if the value is same as you have defined (

\<string name=“zm\_config\_conf\_activity”\>com.xyz.ui.CustomMeetingActivity\</string\>)

Thanks

---

<div class="post-metadata">

**Author:** ![Beth\_Chen](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Beth\_Chen](https://devforum.zoom.us/u/Beth_Chen)\
**Post date:** [December 12, 2017, 3:44pm UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/10 "2017-12-12T15:44:56Z")

</div>

I printed my whole CustomMeetingActivity 14 days ago. Is there something else you are looking for that’s missing?

---

<div class="post-metadata">

**Author:** ![Beth\_Chen](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Beth\_Chen](https://devforum.zoom.us/u/Beth_Chen)\
**Post date:** [December 12, 2017, 4:06pm UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/11 "2017-12-12T16:06:07Z")

</div>

It is working now that when I move the CustomMeetingActivity to be in the same package level as my Main activity instead of in the com.xyz.ui package.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![rana.al.huniess](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@rana.al.huniess](https://devforum.zoom.us/u/rana.al.huniess)\
**Post date:** [February 14, 2021, 2:45pm UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/12 "2021-02-14T14:45:05Z")

</div>

Hi @Jacky_Du ,  
we are using Zoom SDK, Actually, we’ve faced the same issue that faced Mr.Betth\_Chen.  
we’re read your discussion, and we checked all the steps that you are mentioned during your discussion, and I found that we have already added them to our project.  
we using Ionic, so due to the limitation of Ionic, our requirement is hard to meet with your Ionic SDK. So we go to using Custom UI as your SDK demo(sample 2).  
What happened with us is that we are getting notification `Meeting in progress` but Custom Meeting UI is not been called.

We will be grateful for you to have a support

Thanks in advance

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 16, 2021, 5:11pm UTC](https://devforum.zoom.us/t/custom-meeting-ui-is-not-been-called/801/13 "2021-02-16T17:11:15Z")

</div>

Hi @rana.al.huniess, thanks for using our SDK.

Since you are using a custom meeting UI, you are solely responsible for the meeting UI. This means that you will need to respond to the meeting status notification and create the meeting UI yourself.

Thanks!
