# Leave the Zoom meeting programmatically without clicking on leave meting

**URL:** <https://devforum.zoom.us/t/leave-the-zoom-meeting-programmatically-without-clicking-on-leave-meting/67276>\
**Category:** Android\
**Created:** [April 8, 2022, 11:53am UTC](https://devforum.zoom.us/t/leave-the-zoom-meeting-programmatically-without-clicking-on-leave-meting/67276 "2022-04-08T11:53:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anand3450](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anand3450/32/35316_2.png) [@anand3450](https://devforum.zoom.us/u/anand3450)\
**Post date:** [April 8, 2022, 11:53am UTC](https://devforum.zoom.us/t/leave-the-zoom-meeting-programmatically-without-clicking-on-leave-meting/67276/1 "2022-04-08T11:53:29Z")

</div>

Description  
Leave the Zoom meeting programmatically without clicking on leave meting

Which Android Meeting SDK version?  
5.10.

I have intergrated the Zoom Meet sdk inside our app.  
Although I am able to leave the meeting onClick of Leave Meeting in Zoom SDK but as a requirement I need to Leave the Zoom meeting programmatically without clicking on leave meting

---

<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:** [April 8, 2022, 9:24pm UTC](https://devforum.zoom.us/t/leave-the-zoom-meeting-programmatically-without-clicking-on-leave-meting/67276/2 "2022-04-08T21:24:42Z")

</div>

Hi @anand3450,

To leave the meeting you are currently in, you can use [`InMeetingService#leaveCurrentMeeting`](https://marketplacefront.zoom.us/sdk/meeting/android/us/zoom/sdk/InMeetingService.html#leaveCurrentMeeting(boolean)) or [`MeetingService#leaveCurrentMeeting`](https://marketplacefront.zoom.us/sdk/meeting/android/us/zoom/sdk/MeetingService.html#leaveCurrentMeeting(boolean)).

Thanks!

---

<div class="post-metadata">

**Author:** ![anand3450](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anand3450/32/35316_2.png) [@anand3450](https://devforum.zoom.us/u/anand3450)\
**Post date:** [April 19, 2022, 11:05am UTC](https://devforum.zoom.us/t/leave-the-zoom-meeting-programmatically-without-clicking-on-leave-meting/67276/3 "2022-04-19T11:05:06Z")

</div>

Although i am executing the call  
MeetingService meetingService = ZoomSDK.getInstance().getMeetingService();  
meetingService.leaveCurrentMeeting(true);

But the problem is I am executing it in onResume, since the zoomsdk join session is called in onCreate

---

<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:** [April 19, 2022, 10:05pm UTC](https://devforum.zoom.us/t/leave-the-zoom-meeting-programmatically-without-clicking-on-leave-meting/67276/4 "2022-04-19T22:05:31Z")

</div>

Hi @anand3450,

Are you seeing any specific issues when calling `leaveCurrentMeeting`? I’m also unsure why you’re mentioning Activity lifecycle callbacks, as they are not directly involved when leaving a meeting.

Thanks!

---

<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:** [May 20, 2022, 8:06am UTC](https://devforum.zoom.us/t/leave-the-zoom-meeting-programmatically-without-clicking-on-leave-meting/67276/5 "2022-05-20T08:06:25Z")

</div>

Closed on May 20, 2022, 8:06am UTC

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