# Zoom back button handling

**URL:** <https://devforum.zoom.us/t/zoom-back-button-handling/9709>\
**Category:** Android\
**Created:** [March 26, 2020, 8:15am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709 "2020-03-26T08:15:05Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![shingshing6](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shingshing6](https://devforum.zoom.us/u/shingshing6)\
**Post date:** [March 26, 2020, 8:15am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/1 "2020-03-26T08:15:05Z")

</div>

**Description**  
During the meeting, click the physical back button on Android device, it looks quit the apps. However, may I know if it can disable the physical back button during the meeting?

**Which version?**  
Using SDK 4.4.57218.1211.

---

<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:** [March 27, 2020, 4:48am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/2 "2020-03-27T04:48:08Z")

</div>

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

Thanks for using Zoom SDK. If you are using Zoom default UI, you may refer to my answer in this post to override the back button action: [Onbackpress to go out of application](https://devforum.zoom.us/t/onbackpress-to-go-out-of-application/9297/3)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![shingshing6](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shingshing6](https://devforum.zoom.us/u/shingshing6)\
**Post date:** [April 17, 2020, 4:06am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/3 "2020-04-17T04:06:50Z")

</div>

Hi Carson,

I have encounter another issue now. When using the old phone and use the SDK in my app, let say Samsung S6 (os: 6.0.1), my app will restart automatically after leave the meeting. Is it related to the RAM issue or else? New phone without any problems (let say Samsung Note9)

Do you have any ideas?

Thanks.

---

<div class="post-metadata">

**Author:** ![shingshing6](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shingshing6](https://devforum.zoom.us/u/shingshing6)\
**Post date:** [April 17, 2020, 4:30am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/4 "2020-04-17T04:30:16Z")

</div>

Attached the log for your investigation. Please download the [log](https://drive.google.com/file/d/1r8IB2FFgB7nPi6hqIjQ4RBDXaDZcxYGM/view?usp=sharing) here.

---

<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:** [April 17, 2020, 11:27pm UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/5 "2020-04-17T23:27:27Z")

</div>

Hi

Are you experiencing this with 4.4.57218.1211? There was a known issue with v4.4.56624.1028 that the meeting will restart again after leaving the meeting, and it should be fixed in 4.4.57218.1211. Could you have a try with the latest version of SDK and see if this issue persists? I will forward your log to the engineering team for investigation.

Thanks!

---

<div class="post-metadata">

**Author:** ![shingshing6](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shingshing6](https://devforum.zoom.us/u/shingshing6)\
**Post date:** [April 20, 2020, 3:20am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/6 "2020-04-20T03:20:16Z")

</div>

Hi Carson,

I am already using SDK 4.4.57218.1211. This is the latest non-androidx version I used.

Thanks.

---

<div class="post-metadata">

**Author:** ![shingshing6](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shingshing6](https://devforum.zoom.us/u/shingshing6)\
**Post date:** [April 22, 2020, 8:26am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/7 "2020-04-22T08:26:36Z")

</div>

Hi Carson,

May I know the blow items?

1. Disable the ‘Participants-\> invite’ function during the meeting
2. Language is not align when I click into ‘Participants’. Currently I am using English, when I click into ‘Participants’ it shows Chinese. How to solve it?

Thanks.

---

<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:** [April 23, 2020, 7:34am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/8 "2020-04-23T07:34:02Z")

</div>

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

Thanks for the reply. Regarding your questions:

1). Yes, you could use the no\_invite in MeetingOption to hide it:[https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingOptions.html#no\_invite](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingOptions.html#no_invite)  
2). If you set the [https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/ZoomSDK.html#getSdkLocale-android.content.Context-](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/ZoomSDK.html#getSdkLocale-android.content.Context-) to be Chinese, all UI should show Chinese. Could you provide any screenshot on this?

Would upgrading to AndroidX project feasible to you? It seems like you are still using the non-AndroidX version and you won’t be able to have the fixes and new features in the later SDK versions. We did a lot of enhancement in the later SDKs to ensure a better experience.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![shingshing6](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shingshing6](https://devforum.zoom.us/u/shingshing6)\
**Post date:** [April 23, 2020, 10:32am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/9 "2020-04-23T10:32:01Z")

</div>

1. I cannot find anywhere to set the no\_invite. Please check the code i am using.

> public class MyMeetingActivity extends MeetingActivity {

```
private ZoomSDK mZoomSDK;

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

    Bundle extras = getIntent().getExtras();

    String language = extras.getString("language", "CHI");

   mZoomSDK = ZoomSDK.getInstance();

    if ("en".equals(reactLanguage)){
        mZoomSDK.setSdkLocale(this, Locale.ENGLISH);
    } else {
        mZoomSDK.setSdkLocale(this, Locale.TRADITIONAL_CHINESE);
    }

    if (mZoomSDK.isLoggedIn()) {
        finish();
        return;
    }

    if (mZoomSDK.isInitialized()) {
        JoinMeetingParams params = new JoinMeetingParams();
        params.meetingNo = "123123123";
        params.password = "123123123";

        params.displayName = "Hello world";
        ZoomSDK.getInstance().getMeetingService().joinMeetingWithParams(this, params);

        ZoomSDK.getInstance().getMeetingSettingsHelper().enable720p(true);
    } else {
        Toast.makeText(this, "SDK is not ready", Toast.LENGTH_LONG);
    }

}

@Override
public void onBackPressed() {
    onClickLeave();
}

```

}

1. Please refer to the code above too for the language settings. Attached the screens for reference.

 ![meeting](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/88367aee3b6cda43d6acdfd66ab9e266a2582939.jpeg) ![Participants](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/2dc9ae18931d45b92c74d56fb2d07818abb5b8f9.jpeg)

PS: I am not feasible to use AndroidX.

Thanks

---

<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:** [April 24, 2020, 6:03am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/10 "2020-04-24T06:03:15Z")

</div>

Hi @shingshing6,

Thanks for providing the code snippet and the screenshot.

1). You could add a JoinMeetingOption before joining the meeting like this:

```auto
JoinMeetingOptions opts = new JoinMeetingOptions();
opts.no_invite = true;
ZoomSDK.getInstance().getMeetingService().joinMeetingWithParams(this, params, opts);

```

2). You need to set the language before SDK initialization(Before calling initialize()). But I am not very sure how you make the language to be half English and half Chinese. It should be either successfully changed to Chinese, or if failed , everything is in English. Here are some screenshots:

 ![Screenshot_20200423-225626](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/ebbbfa0e3b8b542f898877e0398831ce91da9eec.png)  
 ![Screenshot_20200423-225634](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/2bb4b44f8a13359e8dc35aa9f79601531693814d.png) (You can see I disabled the invite button here)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![shingshing6](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shingshing6](https://devforum.zoom.us/u/shingshing6)\
**Post date:** [April 24, 2020, 6:56am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/11 "2020-04-24T06:56:51Z")

</div>

Hi Carson,

Thanks for your help. I can disable the invite button now.

By the way, any update for the crash issue mentioned above?

> [@shingshing6](#):
>
> Hi Carson,
> 
> I have encounter another issue now. When using the old phone and use the SDK in my app, let say Samsung S6 (os: 6.0.1), my app will restart automatically after leave the meeting. Is it related to the RAM issue or else? New phone without any problems (let say Samsung Note9)
> 
> Do you have any ideas?
> 
> Thanks.

---

<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:** [April 25, 2020, 2:02am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/12 "2020-04-25T02:02:00Z")

</div>

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

We have analyzed the log you’ve provided above, in fact, everything looks working fine. So we are not able to identify the root cause from the provided info. Is your app itself getting restarted after leaving the meeting or the meeting is getting restarted by itself after leaving the meeting?

If it is your app that restarts, then it might be an Android issue, not an SDK issue. There are several reasons that could cause this, hope the following link could be helpful:

- [https://stackoverflow.com/questions/19545889/app-restarts-rather-than-resumes](https://stackoverflow.com/questions/19545889/app-restarts-rather-than-resumes)
- [https://stackoverflow.com/questions/456211/activity-restart-on-rotation-android](https://stackoverflow.com/questions/456211/activity-restart-on-rotation-android)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![shingshing6](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shingshing6](https://devforum.zoom.us/u/shingshing6)\
**Post date:** [April 29, 2020, 6:54am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/13 "2020-04-29T06:54:22Z")

</div>

Hi Carson,

May I know how to extend or override the leave button action (The top right corner button)?

Thanks.

---

<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 2, 2020, 7:57am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/14 "2020-05-02T07:57:49Z")

</div>

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

You could override the method `onClickLeave()`, it is the same process as overriding the back button.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![shingshing6](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shingshing6](https://devforum.zoom.us/u/shingshing6)\
**Post date:** [May 4, 2020, 6:23am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/15 "2020-05-04T06:23:54Z")

</div>

Hi Carson,

Thanks for your support.

May I know if I can only disable the meeting\_id and meeting\_password in the title bar?

It is because JoinMeetingOptions.no\_titlebar will disable all included the change camera option.

---

<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 6, 2020, 7:22am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/16 "2020-05-06T07:22:24Z")

</div>

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

You could either customize the meeting title to something else using: [https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingOptions.html#custom\_meeting\_id](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingOptions.html#custom_meeting_id)

Or use the NO\_TEXT\_MEETING\_ID and NO\_TEXT\_PASSWORD in [https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingViewsOptions.html](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/MeetingViewsOptions.html)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![shingshing6](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@shingshing6](https://devforum.zoom.us/u/shingshing6)\
**Post date:** [May 7, 2020, 2:32am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/17 "2020-05-07T02:32:09Z")

</div>

Hi Carson,

Thanks.

1. Can you provide more details about how to pass the MeetingViewsOptions to the SDK? The joinMeetingWithParams seems does not support MeetingViewsOptions.

2. May I know how to disable the edit name feature in ‘participants-\>Rename’?

---

<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:29am UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/18 "2020-05-09T02:29:50Z")

</div>

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

1). The MeetingViewOptions is available in JoinMeetingOptions:

```auto
        JoinMeetingOptions opts =ZoomMeetingUISettingHelper.getJoinMeetingOptions();
        opts.meeting_views_options = MeetingViewsOptions.NO_BUTTON_MORE + MeetingViewsOptions.NO_BUTTON_SHARE;

```

Then calling the joinMeetingWithParams(context, param, opts) to join a meeting. Our demo app has the implementation: [https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/inmeetingfunction/zoommeetingui/ZoomMeetingUISettingHelper.java#L28](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/inmeetingfunction/zoommeetingui/ZoomMeetingUISettingHelper.java#L28)

2). We do not have an interface to disable that.

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:07pm UTC](https://devforum.zoom.us/t/zoom-back-button-handling/9709/19 "2020-08-21T21:07:58Z")

</div>


