# I am getting a blank page on Android while waiting for the host with android sdK: v6.2.11.25952

**URL:** <https://devforum.zoom.us/t/i-am-getting-a-blank-page-on-android-while-waiting-for-the-host-with-android-sdk-v6-2-11-25952/122599>\
**Category:** Android\
**Created:** [December 17, 2024, 11:23am UTC](https://devforum.zoom.us/t/i-am-getting-a-blank-page-on-android-while-waiting-for-the-host-with-android-sdk-v6-2-11-25952/122599 "2024-12-17T11:23:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![itadmin5](https://avatars.discourse-cdn.com/v4/letter/i/839c29/32.png) [@itadmin5](https://devforum.zoom.us/u/itadmin5)\
**Post date:** [December 17, 2024, 11:23am UTC](https://devforum.zoom.us/t/i-am-getting-a-blank-page-on-android-while-waiting-for-the-host-with-android-sdk-v6-2-11-25952/122599/1 "2024-12-17T11:23:15Z")

</div>

I’m using default zoom layout to render  
class ZoomMeetingActivity : ComponentActivity() {

```auto
private var meetingServiceListener: MeetingServiceListener? = null
private var listener: ZoomSDKInitializeListener? = null

companion object {
    private const val MEETING_NUMBER = "meeting_number"
    private const val MEETING_PASSWORD = "meeting_password"
    private const val TOKEN = "TOKEN"
    private const val WEBINAR_TOKEN = "WEBINAR_TOKEN"
    private const val TYPE = "type"
    // Function to create a new intent for ZoomMeetingActivity
    fun newIntent(
        context: Context,
        token: String,
        meetingNumber: String,
        password: String,
        webinarToken: String,
        type: String
    ): Intent {
        val intent = Intent(context, ZoomMeetingActivity::class.java)
        intent.putExtra(TOKEN, token)
        intent.putExtra(MEETING_NUMBER, meetingNumber)
        intent.putExtra(MEETING_PASSWORD, password)
        intent.putExtra(WEBINAR_TOKEN, webinarToken)
        intent.putExtra(TYPE, type)
        return intent
    }
}

override fun onDestroy() {
    super.onDestroy()
    val sdk = ZoomSDK.getInstance()
    sdk.meetingService.removeListener(meetingServiceListener)
    listener = null
}

override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    val meetingNumber = intent?.getStringExtra(MEETING_NUMBER)
    val pwd = intent?.getStringExtra(MEETING_PASSWORD)
    val token = intent?.getStringExtra(TOKEN)
    val webToken = intent?.getStringExtra(WEBINAR_TOKEN)
    val meetType = intent?.getStringExtra(TYPE)
    val context = this.findActivity()?.applicationContext
    val sdk: ZoomSDK = ZoomSDK.getInstance()

    val preferencesManager = PreferencesManager(context!!)

    val firstName = preferencesManager.getData("INFINIPATH_FIRST_NAME", "")
    // Function to start a meeting
    fun startMeeting(context: Context) {
        val meetingService = sdk.meetingService
        val options = StartMeetingOptions().apply {
            no_video = false
        }
        val params = StartMeetingParamsWithoutLogin().apply {
            displayName = firstName.trim()
            meetingNo = meetingNumber
            zoomAccessToken = webToken
        }

        val result = meetingService.startMeetingWithParams(context, params, options)
        if (result == MeetingError.MEETING_ERROR_SUCCESS) {
            return
        } else {
        }

        if (meetingService.meetingStatus == MeetingStatus.MEETING_STATUS_IDLE) {
        } else {
            meetingService.returnToMeeting(context)
        }
    }
    // Function to join a meeting
    fun joinMeeting(context: Context) {
        val meetingService = sdk.meetingService
        val options = JoinMeetingOptions()

```

// .apply {  
// no\_driving\_mode = false  
// no\_invite = false  
// no\_meeting\_end\_message = false  
// no\_titlebar = false  
// no\_bottom\_toolbar = false  
// no\_dial\_in\_via\_phone = true  
// no\_dial\_out\_to\_phone = true  
// no\_disconnect\_audio = false  
// no\_share = false  
// invite\_options = InviteOptions.INVITE\_VIA\_EMAIL or InviteOptions.INVITE\_VIA\_SMS  
// no\_audio = false  
// no\_video = false  
// meeting\_views\_options = MeetingViewsOptions.NO\_TEXT\_MEETING\_ID or MeetingViewsOptions.NO\_TEXT\_PASSWORD  
// }

```auto
        val params = JoinMeetingParams().apply {
            displayName = firstName
            meetingNo = meetingNumber
            password = pwd
            webinarToken = webToken
        }
        val result = meetingService.joinMeetingWithParams(context, params, options)

        Timber.i("meetingService.meetingStatus", result.toString())
        if (result == MeetingError.MEETING_ERROR_SUCCESS) {
            return
        } else {
        }
        Timber.i("meetingService.meetingStatus", meetingService.meetingStatus.toString())
        if (meetingService.meetingStatus == MeetingStatus.MEETING_STATUS_IDLE || meetingService.meetingStatus != MeetingStatus.MEETING_STATUS_WAITINGFORHOST) {
        } else if(meetingService.meetingStatus == MeetingStatus.MEETING_STATUS_WAITINGFORHOST){
        } else {
            meetingService.returnToMeeting(context)
        }
    }
    // Function to redirect to the dashboard
    fun redirectToDashboard() {
        context.findActivity()
            ?.finish()
        val intent = Intent(context, DashboardActivity::class.java)
        context.startActivity(intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
    }
    // Meeting service listener to handle meeting status changes
    meetingServiceListener = object : MeetingServiceListener {
        override fun onMeetingStatusChanged(p0: MeetingStatus?, p1: Int, p2: Int) {
            when (p0) {
                MeetingStatus.MEETING_STATUS_WAITINGFORHOST -> {
                    // Let Zoom SDK display its default waiting room
                    Timber.i("ZoomSDK", "Waiting for Host... Default UI will be shown")
                }
                MeetingStatus.MEETING_STATUS_INMEETING -> {
                    Timber.i("ZoomSDK", "Meeting started")
                }
                MeetingStatus.MEETING_STATUS_DISCONNECTING -> {
                    redirectToDashboard()
                }
                else -> Timber.i("ZoomSDK", "Other status: p0")
            }
        }

        override fun onMeetingParameterNotification(p0: MeetingParameter?) {
            // Handle meeting parameter notification
        }
    }

    listener = object : ZoomSDKInitializeListener {
        override fun onZoomSDKInitializeResult(p0: Int, p1: Int) {
            if (p0 == 1) {
                return
            }
            sdk.meetingService.addListener(meetingServiceListener)
            val settingsHelper: MeetingSettingsHelper = sdk.getMeetingSettingsHelper()
            settingsHelper.isCustomizedMeetingUIEnabled = false
            if(sdk.isInitialized) {
                if (meetType.equals("start")) {
                    startMeeting(context)
                } else {
                    joinMeeting(context)
                }

            }
        }

        override fun onZoomAuthIdentityExpired() {
        }
    }

    fun initializeZoomSdk() {
        val initParams = ZoomSDKInitParams().apply {
            jwtToken = token
            domain = "zoom.us"
            enableLog = true
        }
        sdk.initialize(context, listener, initParams)
    }

    initializeZoomSdk()
}

```

}

But here everything is workig fine except when user is waiting for the host to start the meeting . For that screen it is loading the blank screen. Can you fix this. Waiting for the host screen is loading the blank screen once admin starts the meeting then it is working fine as expected only waiting for the host screen is not rendering as expected using Jetpack compoe

---

<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:** [January 16, 2025, 9:24pm UTC](https://devforum.zoom.us/t/i-am-getting-a-blank-page-on-android-while-waiting-for-the-host-with-android-sdk-v6-2-11-25952/122599/2 "2025-01-16T21:24:03Z")

</div>

Closed on January 16, 2025, 9:24pm UTC

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