# How to disable screen recorder and screen shoret in zoom sdk

**URL:** <https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851>\
**Category:** Android\
**Created:** [September 11, 2019, 1:49pm UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851 "2019-09-11T13:49:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![webtraceliveclasses](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/webtraceliveclasses/32/1786_2.png) [@webtraceliveclasses](https://devforum.zoom.us/u/webtraceliveclasses)\
**Post date:** [September 11, 2019, 1:49pm UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/1 "2019-09-11T13:49:33Z")

</div>

We use below methods to start Zoom Meeting-

**JoinMeetingHelper.getInstance().joinMeetingWithNumber(this, meetingNo, “”);**

But, this navigates to SDK and starts the meetinf, which is in a different Activity, and hence unable to block screen screenshot/recording.

So, require your help, so that we can have control on UI, which is used for live meeting, and hence we can control the live meeting hosting Activit

---

<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:** [September 11, 2019, 7:01pm UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/2 "2019-09-11T19:01:37Z")

</div>

Hi [webtraceliveclasses](https://devforum.zoom.us/u/webtraceliveclasses)，

Thanks for using Zoom SDK. You can define your own MeetingActivity, for example, MyMeetingActivity and inherit the SDK’s MeetingActivity like this:

```auto
public class MyMeetingActivity extends MeetingActivity

```

and then set the following in your `config.xml`([https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/example2/src/main/res/values/config.xml#L4](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/example2/src/main/res/values/config.xml#L4)):

```auto
<string name="zm_config_conf_activity">MyMeetingActivity</string>

```

Then you can implement your own business logic or constraints (like blocking the screen short or screent recording) in `MyMeetingActivity`. You may refer to the implementation of example2 in our demo app:[https://github.com/zoom/zoom-sdk-android/tree/master/mobilertc-android-studio/example2](https://github.com/zoom/zoom-sdk-android/tree/master/mobilertc-android-studio/example2)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![firebasestep](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/firebasestep/32/4750_2.png) [@firebasestep](https://devforum.zoom.us/u/firebasestep)\
**Post date:** [April 21, 2020, 12:49pm UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/3 "2020-04-21T12:49:25Z")

</div>

Your solution is not working… :@

---

<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 22, 2020, 5:04am UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/4 "2020-04-22T05:04:25Z")

</div>

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

Thanks for the reply. What is the issue you are facing? Could you provide more information?

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 22, 2020, 5:05am UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/5 "2020-04-22T05:05:30Z")

</div>

I see you posted the same question here: [Embed Zoom Video-Conferencing into Another Activity](https://devforum.zoom.us/t/embed-zoom-video-conferencing-into-another-activity/5887/2), I will reply over there and provide further assistance. Thx.

---

<div class="post-metadata">

**Author:** ![iqbalbhabha](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/iqbalbhabha/32/2591_2.png) [@iqbalbhabha](https://devforum.zoom.us/u/iqbalbhabha)\
**Post date:** [April 27, 2020, 8:32am UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/7 "2020-04-27T08:32:24Z")

</div>

I am calling MyMeetingActiity from fragment… I have created config file, as u mentioned above, extended mymeetingactivity still when i clicks join meeting default screen opens of zoom sdk.

---

<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 1, 2020, 4:55am UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/8 "2020-05-01T04:55:48Z")

</div>

Hi [iqbalbhabha](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/7),

Thanks for providing the screenshots. I see you only have the “MyMeetingActivity” in your config.xml, normally it is expecting a complete class path like `this.is.java.package.MyMeetingActivity`, otherwise the meeting activity could not be found. Please refer to the setting in our demo app:[https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/example2/src/main/res/values/config.xml#L4](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/example2/src/main/res/values/config.xml#L4)

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, 6:56am UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/10 "2020-05-02T06:56:16Z")

</div>

Glad to be helpful. Happy Zooming! 🙂

---

<div class="post-metadata">

**Author:** ![yashvudgirkar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yashvudgirkar/32/11468_2.png) [@yashvudgirkar](https://devforum.zoom.us/u/yashvudgirkar)\
**Post date:** [July 6, 2020, 5:11am UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/11 "2020-07-06T05:11:28Z")

</div>

hi,  
i am a newbie here…i know nothing about programming.  
even then i want the result of the above script.

please help me…i am hosting a tutorial and need help as fast as possible.

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:** [July 8, 2020, 7:28am UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/12 "2020-07-08T07:28:32Z")

</div>

Hi @yashvudgirkar,

Thanks for using Zoom SDK. What is the script you are referring to? Are you facing any issues when using the SDK?

Thanks!

---

<div class="post-metadata">

**Author:** ![yashvudgirkar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yashvudgirkar/32/11468_2.png) [@yashvudgirkar](https://devforum.zoom.us/u/yashvudgirkar)\
**Post date:** [July 8, 2020, 4:34pm UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/13 "2020-07-08T16:34:08Z")

</div>

hi Zoom

I just wanted to block my fellow attendees not to take any screenshot of the meeting.  
Please provide a complete procedure for it, if you can.

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:** [July 11, 2020, 12:48am UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/14 "2020-07-11T00:48:49Z")

</div>

Hi @yashvudgirkar,

If you are using Zoom default UI, you may follow the instruction I provided above([How to disable screen recorder and screen shoret in zoom sdk](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/2)) to make the MeetingActivity available to be controlled. Then you could use the native Android methods to disable the abilities of screenshot like:

```auto
getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE);

```

You could also refer to the following links:

- [https://stackoverflow.com/questions/28606689/how-to-prevent-screen-capture-in-android](https://stackoverflow.com/questions/28606689/how-to-prevent-screen-capture-in-android)
- [https://stackoverflow.com/questions/11746364/how-do-i-disable-screenshot-from-an-android-application](https://stackoverflow.com/questions/11746364/how-do-i-disable-screenshot-from-an-android-application)
- [https://stackoverflow.com/questions/9822076/how-do-i-prevent-android-taking-a-screenshot-when-my-app-goes-to-the-background](https://stackoverflow.com/questions/9822076/how-do-i-prevent-android-taking-a-screenshot-when-my-app-goes-to-the-background)

Thanks!

---

<div class="post-metadata">

**Author:** ![dev.shivamjamaiwar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dev.shivamjamaiwar/32/2022_2.png) [@dev.shivamjamaiwar](https://devforum.zoom.us/u/dev.shivamjamaiwar)\
**Post date:** [July 26, 2020, 1:16pm UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/15 "2020-07-26T13:16:36Z")

</div>

@carson.zoom  
i have follow all the steps to disable screen record.

1. Create your own activity, for example, MyMeetingActivity
2. In `config.xml` , add the following:

```auto
<string name="zm_config_conf_activity">us.zoom.sdksample.MyMeetingActivity</string>

```

1. Declare the Activity in your AndroidManifest.xml
2. In your `MyMeetingActivity` class, `extends MeetingActivity`
3. Add this line in onCreate method  
getWindow().setFlags(WindowManager.LayoutParams.FLAG\_SECURE, WindowManager.LayoutParams.FLAG\_SECURE);

but when i join meeting from fragment using following code

 ![Screenshot (96)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/0/03caa3b1a5d0393ace455ddba5b6c1148fe5f8df.png)

it’s open default meeting activity and screen recoder also not disable.

---

<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:** [July 30, 2020, 11:43pm UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/16 "2020-07-30T23:43:31Z")

</div>

Hi @dev.shivamjamaiwar,

Thanks for the reply. Could you provide a demo apk for us to further investigate?

Thanks!  
Carson

---

<div class="post-metadata">

**Author:** ![dev.shivamjamaiwar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dev.shivamjamaiwar/32/2022_2.png) [@dev.shivamjamaiwar](https://devforum.zoom.us/u/dev.shivamjamaiwar)\
**Post date:** [July 31, 2020, 10:01am UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/17 "2020-07-31T10:01:12Z")

</div>

Hey @carson.zoom,  
Thanks for your reply. Currently i am facing another issue, When i join the meeting nothing will happen only notification show **meeting in progress**.

---

<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:** [August 1, 2020, 4:47am UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/18 "2020-08-01T04:47:05Z")

</div>

Hi @dev.shivamjamaiwar,

Thanks for the reply. Could you elaborate on the issue you are facing? Are you using Zoom default UI and extends the MeetingActivity as mentioned above? Could you provide the steps to reproduce this issue with our demo app?

Thanks!

---

<div class="post-metadata">

**Author:** ![dev.shivamjamaiwar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dev.shivamjamaiwar/32/2022_2.png) [@dev.shivamjamaiwar](https://devforum.zoom.us/u/dev.shivamjamaiwar)\
**Post date:** [August 1, 2020, 11:29am UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/19 "2020-08-01T11:29:04Z")

</div>

@Carson_Chen thanks for your help 🙂,

I have solved both issues.

**Issue1: disable screen record not working.**  
actually i had done one mistake in below line, i am not entering \<PACAKAGE\_NAME\> before path  
`<string name="zm_config_conf_activity">.view.activities.classroom.MyMeetingActivity</string>`

i have added \<PACKAGE\_NAME\> before path like below line  
`<string name="zm_config_conf_activity">PACKAGE_NAME.view.activities.classroom.MyMeetingActivity</string>`  
now it’s working.

**Issue2: When i join the meeting nothing will happen only notification show.**  
if i add abiFilters in build.gradle(app) like below  
debug {  
ndk {  
abiFilters ‘x86’, ‘armeabi’, ‘armeabi-v7a’, ‘arm64-v8a’  
}  
}  
then this issue will occur, so i just remove any one of filter(either ‘armeabi-v7a’ or ‘arm64-v8a’) and it’s working.

---

<div class="post-metadata">

**Author:** ![gaurav2](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@gaurav2](https://devforum.zoom.us/u/gaurav2)\
**Post date:** [January 4, 2024, 12:29pm UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/20 "2024-01-04T12:29:31Z")

</div>

I am using meeting sdk version 5.16.XX were config.xml is deleted. Is there any solution how to prevent screenshot and screen recording in the latest meeting sdk for both android and iOS?

---

<div class="post-metadata">

**Author:** ![gaurav2](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@gaurav2](https://devforum.zoom.us/u/gaurav2)\
**Post date:** [February 15, 2024, 1:26pm UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/21 "2024-02-15T13:26:35Z")

</div>

I have tried that, here are the few sample  
This is my MainActivity

```auto
package com.example.zoom_poc_3;

import androidx.appcompat.app.AppCompatActivity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.Toast;

import us.zoom.sdk.*;

public class MainActivity extends AppCompatActivity {

    private Button btnJoin;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
        initializeSdk(MainActivity.this);
        btnJoin = findViewById(R.id.btn);
        btnJoin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                joinMeeting(MainActivity.this, "97448120538", "828130");
            }
        });
    }

    public void initializeSdk(Context context) {
        ZoomSDK sdk = ZoomSDK.getInstance();
        // TODO: For the purpose of this demo app, we are storing the JWT Token in the client app itself. However, you should not use hard-coded values for your JWT Token in your app in production.
        ZoomSDKInitParams params = new ZoomSDKInitParams();
        params.jwtToken = "" ; // I have given correct jwt as meeting was getting started
        params.domain = "zoom.us";
        params.enableLog = true;
        // TODO: Add functionality to this listener (e.g. logs for debugging)
        ZoomSDKInitializeListener listener = new ZoomSDKInitializeListener() {
            /**
             * @param errorCode {@link us.zoom.sdk.ZoomError#ZOOM_ERROR_SUCCESS} if the SDK has been initialized successfully.
             */
            @Override
            public void onZoomSDKInitializeResult(int errorCode, int internalErrorCode) {

            }
            @Override
            public void onZoomAuthIdentityExpired() { }
        };
        sdk.initialize(context, listener, params);
    }

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

```

this is my main\_activity.xml

```auto
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

<Button
    android:id="@+id/btn"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerInParent="true"
    android:text="Join"/>
</RelativeLayout>

```

This is my POCACtivity with is extending NewMeetingAcitvity

```auto
package com.example.zoom_poc_3;

import android.os.Bundle;
import android.view.WindowManager;

import us.zoom.sdk.NewMeetingActivity;

public class POCActivity extends NewMeetingActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
    }
}

```

This is my manifest file

```auto
 <activity
            android:name=".POCActivity"
            />
        <activity
            android:name=".MainActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

```

This is my string.xml

```auto
<resources>
    <string name="app_name">zoom_poc_3</string>
    <string name="zm_config_conf_activity">.POCActivity</string>
</resources>

```

Even I have tried with

```auto
<string name="zm_config_conf_activity">com.example.zoom_poc_3.POCActivity</string>

```

I am using, 5.15.10 in android. Please lemme know if you have something for me.  
Only challange in calling the POCActivity. it’s not getting called at all

---

<div class="post-metadata">

**Author:** ![gaurav2](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@gaurav2](https://devforum.zoom.us/u/gaurav2)\
**Post date:** [February 16, 2024, 7:26am UTC](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851/22 "2024-02-16T07:26:05Z")

</div>

@carson.zoom Can you please help me here

[Next page](https://devforum.zoom.us/t/how-to-disable-screen-recorder-and-screen-shoret-in-zoom-sdk/5851.md?page=2)
