# Android crashes with sharing screen

**URL:** <https://devforum.zoom.us/t/android-crashes-with-sharing-screen/66116>\
**Category:** Android\
**Created:** [March 20, 2022, 3:57pm UTC](https://devforum.zoom.us/t/android-crashes-with-sharing-screen/66116 "2022-03-20T15:57:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmedsharfe94](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ahmedsharfe94/32/36099_2.png) [@ahmedsharfe94](https://devforum.zoom.us/u/ahmedsharfe94)\
**Post date:** [March 20, 2022, 3:57pm UTC](https://devforum.zoom.us/t/android-crashes-with-sharing-screen/66116/1 "2022-03-20T15:57:58Z")

</div>

**Description**  
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ta3lom.kdraty/com.zipow.videobox.ConfActivityNormal}: android.view.InflateException: Binary XML file line #28 in com.ta3lom.kdraty:layout/zm\_conf\_main\_screen: Binary XML file line #286 in com.ta3lom.kdraty:layout/zm\_confview: Error inflating class com.zipow.videobox.confapp.meeting.confhelper.ZmShareCameraBtn

**Which Android Meeting SDK version?**  
I used zoom SDK version 5.9.3.4273  
also, I tried the latest version of zoom SDK and got the same error

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
simply SDK is initialized normally without getting any error  
The meeting already started and I try to join as a normal member  
App crash before showing any view of the zoom  
Use the default zoom view no custom views at all

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

- Device: [One pluse 6t]
- OS: [Android 11]

**Additional context**  
I tried to add zm\_confview to my app and hash the ZmShareCameraBtn view it works fine but needed to hash rc\_float\_view and rc\_mouse

but I got the java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be cast to us.zoom.androidlib.app.ZMActivity

if host started share screen app crash from my mobile side

Thanks

---

<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 21, 2022, 6:56pm UTC](https://devforum.zoom.us/t/android-crashes-with-sharing-screen/66116/2 "2022-03-21T18:56:04Z")

</div>

Hi @ahmedsharfe94, thanks for using our SDK.

Sorry to hear you’re running into a crash. It seems like you’re trying to use the SDK’s UI components directly in your app. These are actually meant to be used internally by the SDK and should not be used directly. The SDK will start its `MeetingActivity` instance automatically once you join a meeting, so if you are using the default UI there is no setup required.

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 21, 2022, 4:56am UTC](https://devforum.zoom.us/t/android-crashes-with-sharing-screen/66116/3 "2022-04-21T04:56:07Z")

</div>

Closed on April 21, 2022, 4:56am UTC

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