# On Meeting Status Change

**URL:** <https://devforum.zoom.us/t/on-meeting-status-change/80930>\
**Category:** Android\
**Created:** [January 2, 2023, 12:54pm UTC](https://devforum.zoom.us/t/on-meeting-status-change/80930 "2023-01-02T12:54:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![microbiagro9](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@microbiagro9](https://devforum.zoom.us/u/microbiagro9)\
**Post date:** [January 2, 2023, 12:54pm UTC](https://devforum.zoom.us/t/on-meeting-status-change/80930/1 "2023-01-02T12:54:20Z")

</div>

Hi  
How to get onMeetingStatusChanged status is android app.  
i tried to call the funtion. but it is always showing the status is IDLE.

FYI: We are using the SDK in both Android and iOS. in iOS i am getting it right, but always getting the status as idle in Android.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [January 4, 2023, 5:31am UTC](https://devforum.zoom.us/t/on-meeting-status-change/80930/2 "2023-01-04T05:31:29Z")

</div>

@microbiagro9 ,

this is a callback function, you would want to get the status in the callback method itself.

---

<div class="post-metadata">

**Author:** ![microbiagro9](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@microbiagro9](https://devforum.zoom.us/u/microbiagro9)\
**Post date:** [January 4, 2023, 9:02am UTC](https://devforum.zoom.us/t/on-meeting-status-change/80930/3 "2023-01-04T09:02:44Z")

</div>

Hi  
We have tried this, we are not able to get it.  
On meetingchange status am calling in Join meeting function, but i am getting the status is IDLE always, Where to call the OnMeetingChangedStatus function,

Am not getting that as implement method or call back  
Attaching the below information for your reference.

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

}

above is for join meeting

public void onMeetingStatusChanged(MeetingStatus meetingStatus,  
int errorCode,  
int internalErrorCode) {  
Log.d(TAG, String.valueOf(meetingStatus));  
System.out.println(“meetingStatus” +meetingStatus);  
if (meetingStatus == MeetingStatus.MEETING\_STATUS\_IDLE) {  
// layout\_zoom\_loading.setVisibility(View.VISIBLE);  
} else {  
// layout\_zoom\_loading.setVisibility(View.GONE);  
}  
if(meetingStatus == MeetingStatus.MEETING\_STATUS\_FAILED  
&& errorCode == MeetingError.MEETING\_ERROR\_CLIENT\_INCOMPATIBLE) {  
Toast.makeText(this, “Version of ZoomSDK is too low!”, Toast.LENGTH\_LONG).show();  
}  
}

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [January 5, 2023, 6:30am UTC](https://devforum.zoom.us/t/on-meeting-status-change/80930/4 "2023-01-05T06:30:44Z")

</div>

@microbiagro9 ,

You will need to do 2 more things. Once these are done, you the SDK will call the method whenever there is a change in status.

1. Register the event listener. this should be done after the SDK has been successfully initialized.

```auto
       private void registerMeetingServiceListener() {
        ZoomSDK zoomSDK = ZoomSDK.getInstance();
        MeetingService meetingService = zoomSDK.getMeetingService();
        if(meetingService != null) {
            meetingService.addListener(this);
        }
    }

```

1. Implement the MeetingServiceListener interface. Let’s assume that the class you are currently in is `Main Activity`

`public class MainActivity extends AppCompatActivity implements MeetingServiceListener, ZoomSDKInitializeListener`

---

<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:** [February 4, 2023, 4:30pm UTC](https://devforum.zoom.us/t/on-meeting-status-change/80930/5 "2023-02-04T16:30:58Z")

</div>

Closed on February 4, 2023, 4:30pm UTC

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