# Android Tablet Crash During Polls

**URL:** <https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007>\
**Category:** Android\
**Created:** [March 1, 2022, 12:40am UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007 "2022-03-01T00:40:12Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan1994](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dan1994/32/55368_2.png) [@dan1994](https://devforum.zoom.us/u/dan1994)\
**Post date:** [March 1, 2022, 12:40am UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007/1 "2022-03-01T00:40:12Z")

</div>

**Description**  
When a user is in a zoom meeting on an android tablet, our app will crash whenever a poll is launched in that meeting. Below is the full stack trace. As you’ll see it refers to setting the colorSurface attribute in our app theme, however the crash still occurs even after we do this. The crash is not reproducible on the sample app.

```auto
Fatal Exception: java.lang.IllegalArgumentException: com.google.android.material.dialog.MaterialAlertDialogBuilder requires a value for the com.my.app:attr/colorSurface attribute to be set in your app theme. You can either set the attribute in your theme or update your theme to inherit from Theme.MaterialComponents (or a descendant).
       at com.google.android.material.resources.MaterialAttributes.resolveOrThrow(MaterialAttributes.java:69)
       at com.google.android.material.color.MaterialColors.getColor(MaterialColors.java:66)
       at com.google.android.material.dialog.MaterialAlertDialogBuilder.<init>(MaterialAlertDialogBuilder.java:120)
       at com.google.android.material.dialog.MaterialAlertDialogBuilder.<init>(MaterialAlertDialogBuilder.java:103)
       at us.zoom.androidlib.utils.ZmDialogUtils.createDialogForTablet(ZmDialogUtils.java:145)
       at com.zipow.videobox.view.h2.onCreateDialog(ZmTabletPollingFragment.java:1)
       at androidx.fragment.app.DialogFragment.prepareDialog(DialogFragment.java:644)
       at androidx.fragment.app.DialogFragment.onGetLayoutInflater(DialogFragment.java:558)
       at androidx.fragment.app.Fragment.performGetLayoutInflater(Fragment.java:1654)
       at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:493)
       at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
       at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:112)
       at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1647)
       at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3128)
       at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3072)
       at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
       at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:502)
       at us.zoom.androidlib.app.ZMActivity.onStart(ZMActivity.java:644)
       at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1435)
       at android.app.Activity.performStart(Activity.java:8024)
       at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3475)
       at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
       at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
       at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:223)
       at android.app.ActivityThread.main(ActivityThread.java:7656)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

```

**Which Android Meeting SDK version?**  
5.9.3, 5.9.1.3674, 5.9.1

**To Reproduce(If applicable)**

1. Start a meeting from the desktop zoom client
2. Join the meeting in our app from an android tablet
3. Launch a poll from the desktop client (app on android tablet will crash)

**Smartphone (please complete the following information):**  
From our logs it has happened on lots of Samsung tablets as well as Amazon tablets. Additionally we’ve reproduced it using a Nexus 7 emulator.

Thanks in advance for your help.

---

<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:** [March 1, 2022, 9:13pm UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007/2 "2022-03-01T21:13:26Z")

</div>

Hi @dan1994,

Can you please provide a list of the devices with make/model/Android version on which this crash is present?

Thanks!

---

<div class="post-metadata">

**Author:** ![dan1994](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dan1994/32/55368_2.png) [@dan1994](https://devforum.zoom.us/u/dan1994)\
**Post date:** [March 1, 2022, 9:25pm UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007/3 "2022-03-01T21:25:55Z")

</div>

Hi @jon.zoom ,

Thanks for the reply. Below are some of the devices where the crash has occurred. There are more. Feel free to let me know if having the complete list would help.

- Galaxy Tab S5e (Android 11)
- Galaxy Tab A7 (Android 11)
- Galaxy Tab A (8.0", 2019) (Android 11)
- Amazon Fire HD 8 (Android 9)
- Galaxy Tab S6 (Android 11)
- Nexus 7 Emulator (Android 11)
- LG G Pad III 8.0 (Android 7)
- Chromebook Plus (V2) (Android 9)
- Intel Gemini Lake Chromebook (Android 9)
- HUAWEI MediaPad T5 (Android 8)

---

<div class="post-metadata">

**Author:** ![dan1994](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dan1994/32/55368_2.png) [@dan1994](https://devforum.zoom.us/u/dan1994)\
**Post date:** [March 2, 2022, 11:37pm UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007/4 "2022-03-02T23:37:19Z")

</div>

Hi @jon.zoom ,

I’m just following up on this to see if there’s any update on this issue. Of course please let me know if there’s any additional information I could provide to help get the issue resolved.

Thanks a lot

---

<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:** [March 3, 2022, 6:54pm UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007/5 "2022-03-03T18:54:38Z")

</div>

Hi @dan1994,

Thanks for the additional information. I have not been able to reproduce this crash yet. I’m wondering if it might be the result of mismatched dependency versions. Can you please provide the SDK dependencies included in your project so we can verify whether or not that is the case?

Thanks!

---

<div class="post-metadata">

**Author:** ![dan1994](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dan1994/32/55368_2.png) [@dan1994](https://devforum.zoom.us/u/dan1994)\
**Post date:** [March 3, 2022, 7:50pm UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007/6 "2022-03-03T19:50:01Z")

</div>

Hi @jon.zoom ,

Thanks for the reply. Below are the sdk dependencies included in our project.

```auto
androidx.security:security-crypto:1.1.0-alpha03
com.google.crypto.tink:tink-android:1.5.0
com.google.android.exoplayer:exoplayer-core:2.13.3
com.google.android.exoplayer:exoplayer-ui:2.13.3
androidx.swiperefreshlayout:swiperefreshlayout:1.1.0
androidx.appcompat:appcompat:1.4.0
androidx.constraintlayout:constraintlayout:2.1.2
com.google.android.material:material:1.4.0
'com.google.android.flexbox:flexbox:3.0.0'
'androidx.multidex:multidex:2.0.1'
"com.google.code.gson:gson:2.8.6"
com.github.bumptech.glide:annotations:4.12.0
com.github.bumptech.glide:glide:4.12.0
androidx.recyclerview:recyclerview:1.2.1
com.airbnb.android:lottie:4.0.0
androidx.window:window:1.0.0-alpha06
com.google.android.material:material:1.4.0
androidx.window:window-java:1.0.0-beta03
org.jetbrains.kotlin:kotlin-stdlib:1.5.21
androidx.core:core-ktx:1.7.0
androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0
androidx.lifecycle:lifecycle-runtime-ktx:2.4.0

```

---

<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:** [March 4, 2022, 4:54pm UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007/7 "2022-03-04T16:54:15Z")

</div>

Hi @dan1994,

Thanks for providing that. There are indeed mismatched versions being used in your project. Can you please try changing your versioning to match the SDK based on the versions listed below and see if it resolves the crash?

- androidx.appcompat:appcompat:1.4.0 → 1.3.1
- androidx.constraintlayout:constraintlayout:2.1.2 → 2.1.0
- “com.google.code.gson:gson:2.8.6” → 2.8.1
- com.github.bumptech.glide:annotations:4.12.0 → 4.11.0
- com.github.bumptech.glide:glide:4.12.0 → 4.11.0
- androidx.core:core-ktx:1.7.0 → 1.6.0

Thanks!

---

<div class="post-metadata">

**Author:** ![dan1994](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dan1994/32/55368_2.png) [@dan1994](https://devforum.zoom.us/u/dan1994)\
**Post date:** [March 4, 2022, 5:57pm UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007/8 "2022-03-04T17:57:33Z")

</div>

Hi @jon.zoom ,

Thanks for the suggestion. Unfortunately the crash still occurs after changing the dependencies you mentioned.

---

<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:** [March 7, 2022, 5:52pm UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007/9 "2022-03-07T17:52:31Z")

</div>

Hi @dan1994,

Thanks for giving that a try. It isn’t clear what is causing this crash yet. Would you be able to provide some additional context around your implementation and/or a simple demo app in which the crash is reproducible?

Thanks!

---

<div class="post-metadata">

**Author:** ![dan1994](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dan1994/32/55368_2.png) [@dan1994](https://devforum.zoom.us/u/dan1994)\
**Post date:** [March 16, 2022, 4:14pm UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007/10 "2022-03-16T16:14:45Z")

</div>

Hi @jon.zoom ,

Thanks for the reply. What information around our implementation would be useful to you?

Thanks a lot.

---

<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:** [March 18, 2022, 4:56pm UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007/11 "2022-03-18T16:56:59Z")

</div>

Hi @dan1994,

Really any information you can provide around your usages of the SDK would be useful, since we don’t have any context right now. Some examples of useful information:

- Whether you are using a custom meeting UI
- If you’re using the default UI, are you using your own `MeetingActivity` instance?
- Any meeting settings being used that might differ from the implementation in the SDK sample app
- A simple demo app in which the crash is reproducible

Thanks!

---

<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:** [April 18, 2022, 2:57am UTC](https://devforum.zoom.us/t/android-tablet-crash-during-polls/65007/12 "2022-04-18T02:57:07Z")

</div>

Closed on April 18, 2022, 2:57am UTC

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