# Zoom call crash when receiving/initiating a call on Tablet devices

**URL:** <https://devforum.zoom.us/t/zoom-call-crash-when-receiving-initiating-a-call-on-tablet-devices/50024>\
**Category:** Android\
**Created:** [May 11, 2021, 10:27am UTC](https://devforum.zoom.us/t/zoom-call-crash-when-receiving-initiating-a-call-on-tablet-devices/50024 "2021-05-11T10:27:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkateswara.ponugot](https://avatars.discourse-cdn.com/v4/letter/v/aca169/32.png) [@venkateswara.ponugot](https://devforum.zoom.us/u/venkateswara.ponugot)\
**Post date:** [May 11, 2021, 10:27am UTC](https://devforum.zoom.us/t/zoom-call-crash-when-receiving-initiating-a-call-on-tablet-devices/50024/1 "2021-05-11T10:27:42Z")

</div>

**Description**  
I have used custom activity by extending Zoom MeetingActivity class and used different layout files for normal and tablet devices

```
class ZoomCustomUIActivity : MeetingActivity() {
// overrides the zoom sdk method
override fun getLayout(): Int {
    return if (ZmUIUtils.isLargeScreen(this)) R.layout.activity_zoom_custom_layout_large
    else R.layout.activity_zoom_custom_layout
}

```

The **activity\_zoom\_custom\_layout\_large** xml layout file contains below code

```
<FrameLayout>
    <include
          android:id="@+id/meetingContent"
          layout="@layout/zm_conf_main_screen_large"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /> </FrameLayout>

```

The **activity\_zoom\_custom\_layout** xml layout file contains below code

```
<FrameLayout>

    <include
        android:id="@+id/meetingContent"
        layout="@layout/zm_conf_main_screen"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
</FrameLayout>

```

When initiating/Receiving a zoom call in Tablet devices causing crashing, crash info is as follows

```
   java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pulsara.dev.debug/com.pulsara.ui.screens.call.ZoomCustomUIActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference
        at com.zipow.videobox.confapp.meeting.confhelper.BOComponent.<init>(BOComponent.java:88)
        at com.zipow.videobox.ConfActivityNormal.onCreate(ConfActivityNormal.java:669)
        at us.zoom.sdk.MeetingActivity.onCreate(MeetingActivity.java:30)
        at com.pulsara.ui.screens.call.ZoomCustomUIActivity.onCreate(ZoomCustomUIActivity.kt:146)
        at android.app.Activity.performCreate(Activity.java:7802)
        at android.app.Activity.performCreate(Activity.java:7791)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409) 
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) 
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) 
        at android.os.Handler.dispatchMessage(Handler.java:107) 
        at android.os.Looper.loop(Looper.java:214) 
        at android.app.ActivityThread.main(ActivityThread.java:7356) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) 

```

Is there any change in Zoom default UI (between **zm\_conf\_main\_screen\_large** and **zm\_conf\_main\_screen** ) for Tablet and normal devices when Zoom call connects?

I have modified the getLayout() method to,

```
override fun getLayout(): Int = R.layout.activity_zoom_custom_layout

```

and now the crash is not happening. So with the modified approach Zoom SDK will use the same **layout.activity\_zoom\_custom\_layout** xml file for both Tablet and normal devices if I am not wrong. Could you please confirm this?

**Which Android Client SDK version?**  
v5.4.3.613

**Smartphone (please complete the following information):**

- Device: Samsung Tab A(Android OS 10), Galaxy Tab A7(Android OS 10), Pixel C (Android OS 10)

---

<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:** [May 11, 2021, 6:52pm UTC](https://devforum.zoom.us/t/zoom-call-crash-when-receiving-initiating-a-call-on-tablet-devices/50024/2 "2021-05-11T18:52:59Z")

</div>

Hi @venkateswara.ponugot, thanks for the post.

As far as I can tell, the layout for tablets and phones is identical. Please let me know if you have any additional questions regarding this. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![donny.bao](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@donny.bao](https://devforum.zoom.us/u/donny.bao)\
**Post date:** [May 12, 2021, 1:19am UTC](https://devforum.zoom.us/t/zoom-call-crash-when-receiving-initiating-a-call-on-tablet-devices/50024/3 "2021-05-12T01:19:42Z")

</div>

Hi @venkateswara.ponugot zm\_conf\_main\_screen\_large.xml is deprecated, please use zm\_conf\_main\_screen for all devices

---

<div class="post-metadata">

**Author:** ![venkateswara.ponugot](https://avatars.discourse-cdn.com/v4/letter/v/aca169/32.png) [@venkateswara.ponugot](https://devforum.zoom.us/u/venkateswara.ponugot)\
**Post date:** [May 12, 2021, 1:53pm UTC](https://devforum.zoom.us/t/zoom-call-crash-when-receiving-initiating-a-call-on-tablet-devices/50024/4 "2021-05-12T13:53:54Z")

</div>

@donny.bao @jon.zoom  
Thanks for the update.

---

<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:** [May 12, 2021, 4:42pm UTC](https://devforum.zoom.us/t/zoom-call-crash-when-receiving-initiating-a-call-on-tablet-devices/50024/5 "2021-05-12T16:42:23Z")

</div>

Glad we could help!

Please don’t hesitate to reach out in a new thread if you experience any other issues. 🙂

---

<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 12, 2021, 2:42am UTC](https://devforum.zoom.us/t/zoom-call-crash-when-receiving-initiating-a-call-on-tablet-devices/50024/6 "2021-06-12T02:42:39Z")

</div>

Closed on June 12, 2021, 2:42am UTC

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