# Share Screen Issues

**URL:** <https://devforum.zoom.us/t/share-screen-issues/88769>\
**Category:** Android\
**Created:** [May 22, 2023, 5:18am UTC](https://devforum.zoom.us/t/share-screen-issues/88769 "2023-05-22T05:18:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![speechlogix](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/speechlogix/32/48720_2.png) [@speechlogix](https://devforum.zoom.us/u/speechlogix)\
**Post date:** [May 22, 2023, 5:18am UTC](https://devforum.zoom.us/t/share-screen-issues/88769/1 "2023-05-22T05:18:51Z")

</div>

I have Issues in Screen sahre. Below is my code  
alert.setPositiveButton(“OK”, new DialogInterface.OnClickListener() {  
public void onClick(DialogInterface dialog, int whichButton) {  
//What ever you want to do with the value  
final Editable YouEditTextValue = edittext.getText();  
MeetingService meetingService1 = ZoomSDK.getInstance().getMeetingService();  
JoinMeetingOptions options = new JoinMeetingOptions();  
options.no\_invite = true;  
options.no\_audio=true;  
options.no\_video=true;  
options.no\_bottom\_toolbar = true;  
options.no\_share=false;  
options.no\_chat\_msg\_toast=true;  
options.no\_record=true;  
options.no\_dial\_in\_via\_phone = true;  
options.no\_dial\_out\_to\_phone = true;

```
            JoinMeetingParams params1 = new JoinMeetingParams();

            //params.displayName = "User Name";
            params1.meetingNo = "81572630729";
            params1.password = "vhtTBa";
            meetingService1.joinMeetingWithParams(MainActivity.this, params1, options);

            isjoin=true;                
            meetingService1.addListener(new MeetingServiceListener() {

                @Override
                public void onMeetingStatusChanged(MeetingStatus meetingStatus, int i, int i1) {
                    switch (meetingStatus) {
                        case MEETING_STATUS_CONNECTING:
                            // Meeting is connecting
                            break;
                        case MEETING_STATUS_INMEETING: {
                            if(isjoin) {
                           

                                MediaProjectionManager manager = (MediaProjectionManager) getSystemService(Context.MEDIA_PROJECTION_SERVICE);
                            if (manager != null) {

                                Intent screenCaptureIntent = manager.createScreenCaptureIntent();
                                //startActivityForResult(screenCaptureIntent,REQUEST_SCREEN_CAPTURE_PERMISSION);
                                inMeetingService = ZoomSDK.getInstance().getInMeetingService();
                               shareController = inMeetingService.getInMeetingShareController();
                               MobileRTCSDKError error= shareController.startShareScreenSession(screenCaptureIntent);

                            }
                            else {

                            }

                       }}
                            break;
                        }
                }

                @Override
                public void onMeetingParameterNotification(MeetingParameter meetingParameter) {

                }
            });

        }
    });

    alert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
        public void onClick(DialogInterface dialog, int whichButton) {
            // what ever you want to do with No option.
        }
    });

    alert.show();
}

```

});  
}  
Review the code

---

<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:** [June 21, 2023, 3:19pm UTC](https://devforum.zoom.us/t/share-screen-issues/88769/2 "2023-06-21T15:19:41Z")

</div>

Closed on June 21, 2023, 3:19pm UTC

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