# Black screen after join the meeting

**URL:** <https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808>\
**Category:** Android\
**Created:** [June 19, 2020, 9:45am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808 "2020-06-19T09:45:32Z")\
**Posts on this page:** 20\
**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:** [June 19, 2020, 9:45am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/1 "2020-06-19T09:45:33Z")

</div>

**Description**  
May I know what should I do for the black screen? It is ok when using your demo app, however, it appears black screen when integrated into my own app.

ps: normally, it is working as i can hear the sound and speak in the black screen.

Step:

1. Join the meeting in portrait
2. Click the “open video icon” without response (still in red color)
3. Click the screen in the middle. Show black screen as attached.
4. Make the phone in landscape
5. Everything resume normal
6. Make the phone in portrait
7. Everything resume normal

It seems I need to refresh something in order to make the layout show in a normal way. Do you have any advise?

**Which version?**  
v4.6.21666.0429

**Screenshots**

 ![blackScreen](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/b78f3f39053c010ad807c981ec885b0d6eeb5c13.jpeg)

---

<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:** [June 20, 2020, 1:03am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/2 "2020-06-20T01:03:28Z")

</div>

Hi @shingshing6,

Thanks for the post. As you have tried as well, I tried to follow your steps with our demo app and everything is working. May I inquire the following:

1. Is this user join the meeting successfully? If you use other devices to join this meeting, are you able to see this user’s video and info well? (If yes, then it will be just a local video view presenting issue, otherwise, it might be an issue that this user is not able to join the meeting)
2. Could you share any code snippet or SDK log for us to further investigate?

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:** [June 22, 2020, 2:32am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/3 "2020-06-22T02:32:49Z")

</div>

Dear Carson,

Please find the log in the below link:

[log](https://drive.google.com/file/d/121zkFwsbT8uDUuKPu6iTpWJhSKZ0kB3J/view?usp=sharing)

1. The user can join the meeting successfully as i mentioned before, just the screen is black. It seems the audio is ok but video is fail.

2. Coding:

**MyActivity.java:**  
public class MyActivity extends Activity implements InitAuthSDKCallback,  
MeetingServiceListener, UserLoginCallback.ZoomDemoAuthenticationListener {

```
private final static String TAG = "ZoomSDKExample";

private View layoutJoin;
private View mProgressPanel;
private ZoomSDK mZoomSDK;

private String meeting_id = "";
private String meeting_pw = "";

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

    Bundle extras = getIntent().getExtras();

    meeting_id = meeting_id;
    meeting_pw = meeting_pw;

    mZoomSDK = ZoomSDK.getInstance();
    if (mZoomSDK.isLoggedIn()) {
        finish();
        return;
    }

    setContentView(R.layout.init_auth_sdk);

    mProgressPanel = (View) findViewById(R.id.progressPanel);

    layoutJoin = findViewById(R.id.layout_join);
    mProgressPanel.setVisibility(View.VISIBLE);

    JSONObject jObj = new JSONObject();
    try {
        jObj.put("jwtToken","JWTTOKEN");
    } catch (JSONException e) {
        e.printStackTrace();
    }

    InitAuthSDKHelper.getInstance().initSDK(this, this, jObj);

    if (mZoomSDK.isInitialized()) {
        layoutJoin.setVisibility(View.INVISIBLE);
        ZoomSDK.getInstance().getMeetingService().addListener(this);
        ZoomSDK.getInstance().getMeetingSettingsHelper().enable720p(true);

        onClickJoin();
    } else {
        layoutJoin.setVisibility(View.GONE);
    }
}

@Override
public void onZoomSDKInitializeResult(int errorCode, int internalErrorCode) {
    Log.i(TAG, "onZoomSDKInitializeResult, errorCode=" + errorCode + ", internalErrorCode=" + internalErrorCode);

    if (errorCode != ZoomError.ZOOM_ERROR_SUCCESS) {
        Toast.makeText(this, R.string.fail_init_zoom, Toast.LENGTH_LONG).show();
        finish();
    } else {
        ZoomSDK.getInstance().getMeetingSettingsHelper().enable720p(true);
        ZoomSDK.getInstance().getMeetingSettingsHelper().enableShowMyMeetingElapseTime(true);
        ZoomSDK.getInstance().getMeetingSettingsHelper().setVideoOnWhenMyShare(true);
        ZoomSDK.getInstance().getMeetingService().addListener(this);

        onClickJoin();
    }
}

@Override
public void onZoomSDKLoginResult(long result) {
    if ((int) result == ZoomAuthenticationError.ZOOM_AUTH_ERROR_SUCCESS) {
        finish();
    } else {
        showProgressPanel(false);
    }
}

@Override
public void onZoomSDKLogoutResult(long result) {

}

@Override
public void onZoomIdentityExpired() {
    if (mZoomSDK.isLoggedIn()) {
        mZoomSDK.logoutZoom();
    }
}

@Override
public void onZoomAuthIdentityExpired() {
    Log.e(TAG,"onZoomAuthIdentityExpired");
}

public void onClickJoin() {

    Context context = getApplicationContext();

    Intent intent = new Intent(context, MyMeetingActivity.class);
    Bundle bundle = new Bundle();
    bundle.putString("meeting_id",meeting_id);
    bundle.putString("meeting_pw",meeting_pw);
    intent.putExtras(bundle);
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    context.startActivity(intent);
}

private void showProgressPanel(boolean show) {
    if (show) {
        mProgressPanel.setVisibility(View.VISIBLE);
        layoutJoin.setVisibility(View.GONE);
    } else {
        mProgressPanel.setVisibility(View.GONE);
        layoutJoin.setVisibility(View.VISIBLE);
    }
}

@Override
public void onMeetingStatusChanged(MeetingStatus meetingStatus, int errorCode, int internalErrorCode) {
    Log.d(TAG,"onMeetingStatusChanged "+meetingStatus);
    if(!ZoomSDK.getInstance().isInitialized()){
        showProgressPanel(false);
        return;
    }

    if (meetingStatus == MeetingStatus.MEETING_STATUS_DISCONNECTING){
        finish();
    }
}

@Override
public void onDestroy() {
    super.onDestroy();
    UserLoginCallback.getInstance().removeListener(this);

    if(null!= ZoomSDK.getInstance().getMeetingService()){
        ZoomSDK.getInstance().getMeetingService().removeListener(this);
    }
    InitAuthSDKHelper.getInstance().reset();
}

```

}

**MyMeetingActivity:**  
public class MyMeetingActivity extends MeetingActivity {  
private ZoomSDK mZoomSDK;

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

    Bundle extras = getIntent().getExtras();

    String meeting_id = extras.getString("meeting_id","");
    String meeting_pw = extras.getString("meeting_pw","");

    mZoomSDK = ZoomSDK.getInstance();

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

    if (mZoomSDK.isInitialized()) {
        JoinMeetingParams params = new JoinMeetingParams();

        params.meetingNo = meeting_id;
        params.password = meeting_pw;

        JoinMeetingOptions opts = new JoinMeetingOptions();
        opts.no_invite = true;

        ZoomSDK.getInstance().getMeetingService().joinMeetingWithParams(this, params,opts);

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

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

```

}

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:** [June 24, 2020, 6:09am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/4 "2020-06-24T06:09:34Z")

</div>

Hi @shingshing6,

Thanks for the info. If seems like you are extending the MeetingActivity, so the transition to the meeting UI should be done by SDK. Using `context.startActivity(intent)` will result in issues. Please add the following to your `config.xml` and SDK will invoke your activity after successfully start/join the meeting:

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

```

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:** [June 26, 2020, 2:58am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/5 "2020-06-26T02:58:53Z")

</div>

Dear Carson,

I have added the code above in config.xml already. However, the issue still happen.  
Even though, I added my coding in the demo apps and updated zm\_config\_conf\_activity, it still not working. Please help for 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:** [June 27, 2020, 2:36am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/6 "2020-06-27T02:36:02Z")

</div>

Hi @shingshing6,

Let me circle back to the engineering team on this and get back to you shortly. Thx

---

<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:** [June 29, 2020, 2:05am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/7 "2020-06-29T02:05:38Z")

</div>

Dear Carson,

Thanks. Please help for it, I was already struggle it for 3 weeks.

---

<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:** [July 3, 2020, 2:54am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/8 "2020-07-03T02:54:48Z")

</div>

Hi Carson,

May I know is there any update of this issue? 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 3, 2020, 5:46am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/9 "2020-07-03T05:46:11Z")

</div>

Hi @shingshing6,

Thanks for the reply. Is it possible to request an apk of your app with the issue you are facing so that we could experience the issue and troubleshoot it from there? We are not able to reproduce this on our end.

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:** [July 3, 2020, 8:23am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/10 "2020-07-03T08:23:12Z")

</div>

Hi Carson,  
Attached the source code for your debug.

[Source](https://drive.google.com/file/d/148OWXLgl0_iPXfrIo3NQ34S282O9J27y/view?usp=sharing)

Please place the src folder under sample/src. Then, please update your API key, secret and then update your MEETING\_ID and MEETING\_PW inside the source code.

My workflow is init the SDK and auto join the Zoom via onClickJoinForMyActivity()

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:** [July 8, 2020, 8:12am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/11 "2020-07-08T08:12:26Z")

</div>

Hi Carson,

Any update? Many 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:** [July 22, 2020, 8:42am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/12 "2020-07-22T08:42:26Z")

</div>

Hello? May I know how to solve this issue?

---

<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 29, 2020, 11:36am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/13 "2020-07-29T11:36:48Z")

</div>

Hi @shingshing6,

Pardon the late response. Thanks for providing the code, really appreciate it. Unfortunately we are not able to find the issue in your code so we would like to suggest cross-referencing the demo app.

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:** [July 31, 2020, 3:55am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/14 "2020-07-31T03:55:14Z")

</div>

Hi Carson,

Do you mean you will investigate the problem with your technical / development team?

Much 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:** [August 1, 2020, 4:56am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/15 "2020-08-01T04:56:05Z")

</div>

Hi @shingshing6,

Thanks for the reply. I could work with the dev team on this but since they have very limited bandwidth, so it will take some time to get back to you. It is suggested to cross-referencing the implementation of the demo app so that this issue could get resolved faster.

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:** [August 5, 2020, 9:40am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/16 "2020-08-05T09:40:11Z")

</div>

Dear Carson,

Is there any methods to open the Zoom SDK with specific orientation?

PS: Using default UI

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:** [August 8, 2020, 2:07am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/17 "2020-08-08T02:07:24Z")

</div>

Hi @shingshing6,

Thanks for the reply. Unfortunately there is no interface to fix the Zoom SDK with specific orientation in default UI.

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:** [August 8, 2020, 4:10pm UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/18 "2020-08-08T16:10:14Z")

</div>

Dear Carson,

Thanks for your reply. Please remind to follow up the previous issue I found. ie: the black screen issue.

Many thanks for your follow up.

---

<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:** [August 19, 2020, 7:26am UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/19 "2020-08-19T07:26:19Z")

</div>

Hi Carson,

May I know if I can pass some parameters (other than JoinMeetingParams and JoinMeetingOptions) to CustomZoomUIActivity.java?

eg: I want to pass the age to CustomZoomUIActivity.java

Thanks.

---

<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:** [August 19, 2020, 6:22pm UTC](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808/20 "2020-08-19T18:22:53Z")

</div>

Hi @shingshing6,

It sounds like you might be looking for [Intents](https://developer.android.com/reference/android/content/Intent), but please correct me if I’m misunderstanding 🙂

Thanks!

[Next page](https://devforum.zoom.us/t/black-screen-after-join-the-meeting/21808.md?page=2)
