# Crash when sharing screen

**URL:** https://devforum.zoom.us/t/crash-when-sharing-screen/144766
**Category:** Android
**Created:** [July 14, 2026, 2:30pm UTC](https://devforum.zoom.us/t/crash-when-sharing-screen/144766 "2026-07-14T14:30:21Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ChrisM](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@ChrisM](https://devforum.zoom.us/u/ChrisM)
#### Post date: [July 14, 2026, 2:30pm UTC](https://devforum.zoom.us/t/crash-when-sharing-screen/144766/1 "2026-07-14T14:30:21Z")

</div>

**Description**

We are getting the following crash (in production) whenever a user attempts to share their screen during a meeting. The crash is 100% reproducible.

```shell

java.lang.RuntimeException: Unable to create service com.zipow.videobox.share.ScreenShareServiceForSDK
at android.app.ActivityThread.handleCreateService(ActivityThread.java:5590)
at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2759)
at android.os.Handler.dispatchMessageImpl(Handler.java:142)
at android.os.Handler.dispatchMessage(Handler.java:125)
at android.os.Looper.loopOnce(Looper.java:269)
at android.os.Looper.loop(Looper.java:367)
at android.app.ActivityThread.main(ActivityThread.java:9333)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:566)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getString(int)' on a null object reference
at us.zoom.proguard.kf8.d(ZmVendorUtils.java:2)
at us.zoom.proguard.kf8.e(ZmVendorUtils.java:1)
at us.zoom.proguard.zy6.o(ZmConfigOptionUtils.java:1)
at com.zipow.videobox.VideoBoxApplication.getInstance(VideoBoxApplication.java:1)
at com.zipow.videobox.share.ScreenShareServiceForSDK.onCreate(ScreenShareServiceForSDK.java:3)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:5579)
... 10 more

```

**Which Android Meeting SDK version?**  
`7.0.0.38589`

**To Reproduce(If applicable)**

Select Share \> Screen \> Share entire screen

**Screenshots**

(When attempting to add screenshots, I get an error message that I can’t attach media items.)

**Troubleshooting Routes**

We’re not doing any client-side manipulation of screen sharing.

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

~82% Samsung phones, 11% Motorola, and a handful of other manufacturers. Approximately 67% of those users are on Android 16.

**Additional context**

We have several thousand of these crashes in the past couple of months, but have been unable to find an issue with our integration.

---

<div class="post-metadata">

### Author: ![elaine.ku](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elaine.ku/32/40026_2.png) [@elaine.ku](https://devforum.zoom.us/u/elaine.ku)
#### Post date: [July 15, 2026, 8:45pm UTC](https://devforum.zoom.us/t/crash-when-sharing-screen/144766/2 "2026-07-15T20:45:57Z")

</div>

@ChrisM Thank you for posting on our dev forum. We might need more information to investigate this crash. Had you set it `enableGenerateDump`to true when initializing the SDK? Also, is there more crash dumps other than the one you provided? If there’s more crash info, please share it with us. Thank you

 ![1cadbc_Screen_shot_1784083173973](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/3/03956967f580cf0ff758c95c1365135df5df7969.jpeg)

---

<div class="post-metadata">

### Author: ![ChrisM](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@ChrisM](https://devforum.zoom.us/u/ChrisM)
#### Post date: [July 16, 2026, 4:49pm UTC](https://devforum.zoom.us/t/crash-when-sharing-screen/144766/3 "2026-07-16T16:49:00Z")

</div>

I enabled that flag and did the repro steps again. This is what it logs with the flag enabled:

```auto
java.lang.RuntimeException: Unable to start service com.zipow.videobox.share.ScreenShareServiceForSDK@5300281 with Intent { xflg=0x4 cmp=com...mobile/com.zipow.videobox.share.ScreenShareServiceForSDK (has extras) }
	at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5765)
	at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2811)
	at android.os.Handler.dispatchMessageImpl(Handler.java:142)
	at android.os.Handler.dispatchMessage(Handler.java:125)
	at android.os.Looper.loopOnce(Looper.java:269)
	at android.os.Looper.loop(Looper.java:367)
	at android.app.ActivityThread.main(ActivityThread.java:9333)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:566)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
Caused by: java.lang.SecurityException: Starting FGS with type mediaProjection callerApp=ProcessRecord{c5a429a 4302:com...mobile/u0a470} targetSDK=36 requires permissions: all of the permissions [android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION] and any of the permissions [android.permission.CAPTURE_VIDEO_OUTPUT, android:project_media] or Media projection screen capture permission 
	at android.os.Parcel.createExceptionOrNull(Parcel.java:3370)
	at android.os.Parcel.createException(Parcel.java:3354)
	at android.os.Parcel.readException(Parcel.java:3337)
	at android.os.Parcel.readException(Parcel.java:3279)
	at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:7509)
	at java.lang.reflect.Method.invoke(Native Method)
	at leakcanary.ServiceWatcher$install$4$2.invoke(ServiceWatcher.kt:93)
	at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
	at $Proxy13.setServiceForeground(Unknown Source)
	at android.app.Service.startForeground(Service.java:862)
	at us.zoom.sdk.SDKNotificationMgr.showConfNotificationForSDK(SDKNotificationMgr.java:132)
	at com.zipow.videobox.share.ScreenShareServiceForSDK.b(ScreenShareServiceForSDK.java:31)
	at com.zipow.videobox.share.ScreenShareServiceForSDK.a(ScreenShareServiceForSDK.java:21)
	at com.zipow.videobox.share.ScreenShareServiceForSDK.onStartCommand(ScreenShareServiceForSDK.java:22)
	at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5749)
	... 10 more

```

Looks like FOREGROUND\_SERVICE\_MEDIA\_PROJECTION is missing; if I explicitly declare this permission in the manifest then screen sharing works.

---

<div class="post-metadata">

### Author: ![ChrisM](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@ChrisM](https://devforum.zoom.us/u/ChrisM)
#### Post date: [July 16, 2026, 5:13pm UTC](https://devforum.zoom.us/t/crash-when-sharing-screen/144766/4 "2026-07-16T17:13:21Z")

</div>

Is there a way to disable the screen sharing button for users in a meeting? I ask because I am not keen to go through the Google Play approval process for adding the missing permission.

---

<div class="post-metadata">

### Author: ![elaine.ku](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elaine.ku/32/40026_2.png) [@elaine.ku](https://devforum.zoom.us/u/elaine.ku)
#### Post date: [July 16, 2026, 7:06pm UTC](https://devforum.zoom.us/t/crash-when-sharing-screen/144766/5 "2026-07-16T19:06:15Z")

</div>

@ChrisM Please follow the description from ourr official doc to disable the service. [Integrate with your app - Meeting SDK - Zoom Developer Docs](https://developers.zoom.us/docs/meeting-sdk/android/integrate/) Thank you

---

<div class="post-metadata">

### Author: ![ChrisM](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@ChrisM](https://devforum.zoom.us/u/ChrisM)
#### Post date: [July 29, 2026, 2:06pm UTC](https://devforum.zoom.us/t/crash-when-sharing-screen/144766/6 "2026-07-29T14:06:27Z")

</div>

When I followed those steps, I started seeing this crash:

```auto

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getString(int)' on a null object reference
at us.zoom.proguard.kf8.d(ZmVendorUtils.java:2)
at us.zoom.proguard.kf8.e(ZmVendorUtils.java:1)
at us.zoom.proguard.zy6.o(ZmConfigOptionUtils.java:1)
at com.zipow.videobox.VideoBoxApplication.getInstance(VideoBoxApplication.java:1)
at com.zipow.videobox.share.ScreenShareServiceForSDK.onCreate(ScreenShareServiceForSDK.java:3)

```

This is what those integration docs currently say to add when screensharing is not wanted:

> If the screen sharing feature is not included in your project, add this code in `Androidmanifest.xml` to remove the service and permissions.

```xml

<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" tools:node="remove" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" tools:node="remove" />
<service
    android:name="com.zipow.videobox.share.ScreenShareServiceForSDK"
    android:exported="false"
    android:foregroundServiceType="microphone|connectedDevice"
    tools:replace="android:foregroundServiceType"
    android:label="Zoom"/>

```

The screen sharing option is gone from the UI, but intermittently the app will crash with that `NullPointerException` at app start.

---

<div class="post-metadata">

### Author: ![ChrisM](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@ChrisM](https://devforum.zoom.us/u/ChrisM)
#### Post date: [August 24, 2026, 7:36pm UTC](https://devforum.zoom.us/t/crash-when-sharing-screen/144766/7 "2026-08-24T19:36:39Z")

</div>

I’ve enabled the error dump, here’s the full trace:

```auto

java.lang.RuntimeException: Unable to create service com.zipow.videobox.share.ScreenShareServiceForSDK
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:5655)
	at android.app.ActivityThread.-$$Nest$mhandleCreateService(ActivityThread.java:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2804)
	at android.os.Handler.dispatchMessageImpl(Handler.java:142)
	at android.os.Handler.dispatchMessage(Handler.java:125)
	at android.os.Looper.loopOnce(Looper.java:296)
	at android.os.Looper.loop(Looper.java:397)
	at android.app.ActivityThread.main(ActivityThread.java:9523)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:575)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:939)
Caused by: java.lang.SecurityException: Starting FGS with type microphone callerApp=ProcessRecord{7618361 4503:com.<company name>/u0a501} targetSDK=36 requires permissions: all of the permissions [android.permission.FOREGROUND_SERVICE_MICROPHONE] and any of the permissions [android.permission.CAPTURE_AUDIO_HOTWORD, android.permission.CAPTURE_AUDIO_OUTPUT, android.permission.CAPTURE_MEDIA_OUTPUT, android.permission.CAPTURE_TUNER_AUDIO_INPUT, android.permission.CAPTURE_VOICE_COMMUNICATION_OUTPUT, android.permission.RECORD_AUDIO] and the app must be in the eligible state/exemptions to access the foreground only permission
	at android.os.Parcel.createExceptionOrNull(Parcel.java:3392)
	at android.os.Parcel.createException(Parcel.java:3376)
	at android.os.Parcel.readException(Parcel.java:3359)
	at android.os.Parcel.readException(Parcel.java:3301)
	at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:7511)
	at java.lang.reflect.Method.invoke(Native Method)
	at leakcanary.ServiceWatcher$install$4$2.invoke(ServiceWatcher.kt:93)
	at java.lang.reflect.Proxy.invoke(Proxy.java:1009)
	at $Proxy12.setServiceForeground(Unknown Source)
	at android.app.Service.startForeground(Service.java:862)
	at us.zoom.sdk.SDKNotificationMgr.showConfNotificationForSDK(SDKNotificationMgr.java:132)
	at us.zoom.sdk.SDKNotificationMgr.showConfNotificationForSDK(SDKNotificationMgr.java:4)
	at com.zipow.videobox.share.ScreenShareServiceForSDK.onCreate(ScreenShareServiceForSDK.java:7)
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:5644)
	... 10 more
Caused by: android.os.RemoteException: Remote stack trace:
	at com.android.server.am.ActiveServices.validateForegroundServiceType(ActiveServices.java:3037)
	at com.android.server.am.ActiveServices.setServiceForegroundInnerLocked(ActiveServices.java:2711)
	at com.android.server.am.ActiveServices.setServiceForegroundLocked(ActiveServices.java:1965)
	at com.android.server.am.ActivityManagerService.setServiceForeground(ActivityManagerService.java:14647)
	at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3729)

```

So the instructions at [Integrate with your app - Meeting SDK - Zoom Developer Docs](https://developers.zoom.us/docs/meeting-sdk/android/integrate/) don’t work, they cause a crash when joining the meeting. (Not touching screenshare at all.)

Without the addition of those values in the linked doc, the permissions work fine.
