# Zoom SDK Customization

**URL:** <https://devforum.zoom.us/t/zoom-sdk-customization/61344>\
**Category:** Android\
**Created:** [December 12, 2021, 10:58am UTC](https://devforum.zoom.us/t/zoom-sdk-customization/61344 "2021-12-12T10:58:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![RGCoder](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rgcoder/32/30304_2.png) [@RGCoder](https://devforum.zoom.us/u/RGCoder)\
**Post date:** [December 12, 2021, 10:58am UTC](https://devforum.zoom.us/t/zoom-sdk-customization/61344/1 "2021-12-12T10:58:01Z")

</div>

**Description**  
So, the zoom SDK in my app is working fine.  
However, I had a specific condition in my app which I wanted to apply. So, the user joins the meeting from one java activity in my app but after he leaves the meeting, I want it to start another activity. Can you please confirm the use of zoom SDK and the code for it…?

**Smartphone (please complete the following information):**

- Device: For all
- OS: Android API 5

---

<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:** [December 13, 2021, 7:39pm UTC](https://devforum.zoom.us/t/zoom-sdk-customization/61344/2 "2021-12-13T19:39:54Z")

</div>

Hi @RGCoder, thanks for the post.

When the current user has left the meeting successfully, you should see the [`onMeetingLeaveComplete`](https://marketplacefront.zoom.us/sdk/meeting/android/us/zoom/sdk/InMeetingServiceListener.html#onMeetingLeaveComplete-long-) callback. Please let me know if you are running into any issues with using this callback and I will be happy to help.

Thanks!

---

<div class="post-metadata">

**Author:** ![RGCoder](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rgcoder/32/30304_2.png) [@RGCoder](https://devforum.zoom.us/u/RGCoder)\
**Post date:** [December 14, 2021, 4:07am UTC](https://devforum.zoom.us/t/zoom-sdk-customization/61344/3 "2021-12-14T04:07:32Z")

</div>

Hey thanks for that, it was mostly what I needed.  
But still not sure how to implement the method in the meeting.  
Please confirm that…  
Like I know I should copy the code as a method, but where should I implement the method when the meeting joins??

---

<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:** [December 14, 2021, 11:33pm UTC](https://devforum.zoom.us/t/zoom-sdk-customization/61344/4 "2021-12-14T23:33:11Z")

</div>

Hi @RGCoder,

The callback I linked to is a method in the `InMeetingServiceListener` interface which you would need to implement. You would also need to pass your instance of `InMeetingServiceListener` into the [`InMeetingService#addListener`](https://marketplacefront.zoom.us/sdk/meeting/android/us/zoom/sdk/InMeetingService.html#addListener-us.zoom.sdk.InMeetingServiceListener-) method.

Thanks!

---

<div class="post-metadata">

**Author:** ![RGCoder](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rgcoder/32/30304_2.png) [@RGCoder](https://devforum.zoom.us/u/RGCoder)\
**Post date:** [December 15, 2021, 12:38pm UTC](https://devforum.zoom.us/t/zoom-sdk-customization/61344/5 "2021-12-15T12:38:35Z")

</div>

Ummm… Sorry for the trouble but I am still not sure…  
Whatever you are saying is not getting implemented in my code and it doesn’t match…  
Can you give me some sort of GitHub implementation link or video link for this…  
The code to reproduce what I have till now:-

SecondActivity.java :-:-:-

```auto
private void initializeSdk(Context context) {
        ZoomSDK sdk = ZoomSDK.getInstance();

        ZoomSDKInitParams params = new ZoomSDKInitParams();
        params.appKey = **key** ;
        params.appSecret = **SecretKey** ;
        params.domain = "zoom.us";
        params.enableLog = true;

        ZoomSDKInitializeListener listener = new ZoomSDKInitializeListener() {
            @Override
            public void onZoomSDKInitializeResult(int i, int i1) {

            }

            @Override
            public void onZoomAuthIdentityExpired() {

            }
        };
        sdk.initialize(context, listener, params);
    }

    private void joinMeeting(Context context,String meetingNumber,String meetingPassword,String userName) {
        MeetingService meetingService = ZoomSDK.getInstance().getMeetingService();
        JoinMeetingOptions options = new JoinMeetingOptions();
        JoinMeetingParams params = new JoinMeetingParams();
        params.displayName = userName;
        params.meetingNo = meetingNumber;
        params.password = meetingPassword;
        meetingService.joinMeetingWithParams(context, params, options);
    }

buttonhelpme.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, HelpMeActivity.class));
            } }

```

Now where do I implement the rest here so that when the user leaves the meeting or is kicked out by the host, another activity MainActivity.java will be opened?

---

<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:** [December 15, 2021, 6:41pm UTC](https://devforum.zoom.us/t/zoom-sdk-customization/61344/6 "2021-12-15T18:41:24Z")

</div>

Hi @RGCoder,

It doesn’t look like you’ve implemented the `InMeetingServiceListener` interface anywhere in the code you’ve provided. You must implement this interface and create a concrete instance of it to pass into the `addListener` method. For example, if your listener instance was named `inMeetingListener`, you could call `ZoomSDK.getInstance().getInMeetingService().addListener(inMeetingListener);`.

Thanks!

---

<div class="post-metadata">

**Author:** ![RGCoder](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rgcoder/32/30304_2.png) [@RGCoder](https://devforum.zoom.us/u/RGCoder)\
**Post date:** [December 17, 2021, 10:48am UTC](https://devforum.zoom.us/t/zoom-sdk-customization/61344/7 "2021-12-17T10:48:37Z")

</div>

Thanks for that reply @jon.zoom !!  
I am still finding it complicated to connect…  
And as I was searching the net on what you gave me…  
I found the following thread from 2020 and I think it should work…

> [@Onbackpress to go out of application](https://devforum.zoom.us/t/onbackpress-to-go-out-of-application/9297/4):
>
> Hi [aadil9265711](https://devforum.zoom.us/u/aadil9265711), Thanks for the reply. I understand your request and the link includes the discussion of how to do what you are mentioning. I have just tested with our demo app(sample), using default UI, and I am able to override the back button action. Here are the steps: Create your own activity, for example, MyMeetingActivity In config.xml, add the following: \<string name="zm\_config\_conf\_activity"\>us.zoom.sdksample.MyMeetingActivity\</string\> Declare the Activity in your AndroidManifest.…

I’m however not able to understand how to use this to run if the person has been kicked by the host? Please confirm…

---

<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:** [December 17, 2021, 8:22pm UTC](https://devforum.zoom.us/t/zoom-sdk-customization/61344/8 "2021-12-17T20:22:19Z")

</div>

Hi @RGCoder,

Can you please let me know what specifically you need further clarification around?

> I found the following thread from 2020 and I think it should work…

This thread seems to be referencing how to implement something within a custom meeting UI. If you are using the default Zoom UI provided by the SDK, it will automatically navigate back to the previous Activity on the stack when exiting.

Thanks!

---

<div class="post-metadata">

**Author:** ![chris.rocketi77](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris.rocketi77/32/33990_2.png) [@chris.rocketi77](https://devforum.zoom.us/u/chris.rocketi77)\
**Post date:** [January 11, 2022, 1:43pm UTC](https://devforum.zoom.us/t/zoom-sdk-customization/61344/9 "2022-01-11T13:43:49Z")

</div>

Thanks for the interesting tips!

---

<div class="post-metadata">

**Author:** ![chris.rocketi77](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chris.rocketi77/32/33990_2.png) [@chris.rocketi77](https://devforum.zoom.us/u/chris.rocketi77)\
**Post date:** [January 12, 2022, 1:54pm UTC](https://devforum.zoom.us/t/zoom-sdk-customization/61344/10 "2022-01-12T13:54:50Z")

</div>

I also have the same situation! Thanks for helping with the code! I will try to change this in my project.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [February 11, 2022, 11:55pm UTC](https://devforum.zoom.us/t/zoom-sdk-customization/61344/11 "2022-02-11T23:55:38Z")

</div>

Closed on February 11, 2022, 11:55pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
