# Android On calling startMeeting appears as JoinMeeting behaviour

**URL:** <https://devforum.zoom.us/t/android-on-calling-startmeeting-appears-as-joinmeeting-behaviour/42516>\
**Category:** Android\
**Created:** [February 4, 2021, 7:47am UTC](https://devforum.zoom.us/t/android-on-calling-startmeeting-appears-as-joinmeeting-behaviour/42516 "2021-02-04T07:47:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rushabh.gedam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rushabh.gedam/32/20896_2.png) [@rushabh.gedam](https://devforum.zoom.us/u/rushabh.gedam)\
**Post date:** [February 4, 2021, 7:47am UTC](https://devforum.zoom.us/t/android-on-calling-startmeeting-appears-as-joinmeeting-behaviour/42516/1 "2021-02-04T07:47:07Z")

</div>

**Description**  
I have added the Zoom SDK in many of my apps, but since last few days I am facing an issue regarding `startMeeting()` function.  
I am trying to start meeting with below code  
public void startMeeting(  
final String meetingNo,  
final String displayName,  
final String userId,  
final String zoomAccessToken,  
final String zoomToken,  
Promise promise  
) {  
try {  
meetingPromise = promise;

```
    ZoomSDK zoomSDK = ZoomSDK.getInstance();
    if(!zoomSDK.isInitialized()) {
        promise.reject("ERR_ZOOM_START", "ZoomSDK has not been initialized successfully");
        return;
    }

    final MeetingService meetingService = zoomSDK.getMeetingService();
    if(meetingService.getMeetingStatus() != MeetingStatus.MEETING_STATUS_IDLE) {
        long lMeetingNo = 0;
        try {
        lMeetingNo = Long.parseLong(meetingNo);
        } catch (NumberFormatException e) {
        promise.reject("ERR_ZOOM_START", "Invalid meeting number: " + meetingNo);
        return;
        }

        if(meetingService.getCurrentRtcMeetingNumber() == lMeetingNo) {
        meetingService.returnToMeeting(reactContext.getCurrentActivity());
        promise.resolve("Already joined zoom meeting");
        return;
        }
    }

    StartMeetingOptions opts = new StartMeetingOptions();
    StartMeetingParamsWithoutLogin params = new StartMeetingParamsWithoutLogin();
    params.displayName = displayName;
    params.meetingNo = meetingNo;
    params.userId = userId;
    params.userType = MeetingService.USER_TYPE_API_USER;
    params.zoomAccessToken = zoomAccessToken;
    params.zoomToken = zoomToken;

    int startMeetingResult = meetingService.startMeetingWithParams(reactContext.getCurrentActivity(), params, opts);
    Log.i(TAG, "startMeeting, startMeetingResult=" + startMeetingResult);

    if (startMeetingResult != MeetingError.MEETING_ERROR_SUCCESS) {
        promise.reject("ERR_ZOOM_START", "startMeeting, errorCode=" + startMeetingResult);
    }
    } catch (Exception ex) {
    promise.reject("ERR_UNEXPECTED_EXCEPTION", ex);
    }
}

```

It was working finely along with proper userZAK, userID & all required params,  
But since last two days on calling this function it goes into joinmeeting.  
I read & noticed that new policies made passwords compulsory.  
It’s all ok,  
but how can I host a meeting using Android SDK.  
Your documentation is not updated as per new policies which are in rule since sept 29.  
I just wanna host a meeting from mobile sdk, please help me asap.  
Thanks in advance

---

<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:** [February 4, 2021, 5:58pm UTC](https://devforum.zoom.us/t/android-on-calling-startmeeting-appears-as-joinmeeting-behaviour/42516/2 "2021-02-04T17:58:26Z")

</div>

Hi @rushabh.gedam, thanks for the post.

Based on the code you have provided, it looks like you are doing things correctly from a programmatic standpoint. This means that the issue must be from you not using the correct account’s ZAK token to star the meeting. Please ensure that the account that is host of the meeting is the account whose ZAK token you are using in the `zoomAccessToken` field.

> Your documentation is not updated as per new policies which are in rule since sept 29.

Apologies for the outdated documentation. We are working on some major improvements for our SDK documentation and understand that some areas of the current docs will be a bit behind while we work on this.

Thanks!

---

<div class="post-metadata">

**Author:** ![rushabh.gedam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rushabh.gedam/32/20896_2.png) [@rushabh.gedam](https://devforum.zoom.us/u/rushabh.gedam)\
**Post date:** [February 5, 2021, 4:58am UTC](https://devforum.zoom.us/t/android-on-calling-startmeeting-appears-as-joinmeeting-behaviour/42516/3 "2021-02-05T04:58:08Z")

</div>

Hi @jon.zoom, Thanks for your quickest reply.  
How can I verify token’s,  
If any possible way you can suggest, it’ll be more helpful.

---

<div class="post-metadata">

**Author:** ![rushabh.gedam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rushabh.gedam/32/20896_2.png) [@rushabh.gedam](https://devforum.zoom.us/u/rushabh.gedam)\
**Post date:** [February 5, 2021, 12:43pm UTC](https://devforum.zoom.us/t/android-on-calling-startmeeting-appears-as-joinmeeting-behaviour/42516/4 "2021-02-05T12:43:57Z")

</div>

whoilla, it got worked out.  
Thanks @jon.zoom.

---

<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:** [February 5, 2021, 5:51pm UTC](https://devforum.zoom.us/t/android-on-calling-startmeeting-appears-as-joinmeeting-behaviour/42516/5 "2021-02-05T17:51:34Z")

</div>

Glad to hear everything is working now!

Please don’t hesitate to reach back out if you run into any other issues. 🙂
