# Android app crashes when the app moves from the background to the foreground

**URL:** <https://devforum.zoom.us/t/android-app-crashes-when-the-app-moves-from-the-background-to-the-foreground/77402>\
**Category:** Android\
**Tags:** meeting-sdk, android\
**Created:** [October 14, 2022, 11:30am UTC](https://devforum.zoom.us/t/android-app-crashes-when-the-app-moves-from-the-background-to-the-foreground/77402 "2022-10-14T11:30:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shreya/32/42247_2.png) [@shreya](https://devforum.zoom.us/u/shreya)\
**Post date:** [October 14, 2022, 11:30am UTC](https://devforum.zoom.us/t/android-app-crashes-when-the-app-moves-from-the-background-to-the-foreground/77402/1 "2022-10-14T11:30:34Z")

</div>

**Description**

Zoom SDK Integration on React Native:

- Since the Meeting SDK is not available in ReactNative hence we used bridge to enable it. Link: [GitHub - mieszko4/react-native-zoom-us](https://github.com/mieszko4/react-native-zoom-us.git)
- In Android, integration of the Meeting SDK crashes the app. But works fine if we use the Video SDK with this repository and we can also see the default Zoom UI controls, all other functionalities are working fine.

**Issue** : After joining the zoom meeting through Android app, If we put app in background, it crashes.

**Which Android Video SDK version?**  
v1.5.1

**Screenshots**  
Crash Log:

D/AndroidRuntime: Shutting down VM  
E/AndroidRuntime: FATAL EXCEPTION: main  
Process: com.ttn.idanim, PID: 7011  
java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.CLOSE\_SYSTEM\_DIALOGS flg=0x50000010 (has extras) } in us.zoom.androidlib.app.ZmCloseSystemDialogBroadcastReceiver@4ac4993  
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1566)  
at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$\_BumDX2UKsnxLVrE6UJsJZkotuA.run(Unknown Source:2)  
at android.os.Handler.handleCallback(Handler.java:938)  
at android.os.Handler.dispatchMessage(Handler.java:99)  
at android.os.Looper.loop(Looper.java:223)  
at android.app.ActivityThread.main(ActivityThread.java:7656)  
at java.lang.reflect.Method.invoke(Native Method)  
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)  
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)  
Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.ttn.idanim/com.zipow.videobox.conference.ui.ZmConfPipActivity}; have you declared this activity in your AndroidManifest.xml?  
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2065)  
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1727)  
at android.app.Activity.startActivityForResult(Activity.java:5320)  
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:597)  
at android.app.Activity.startActivityForResult(Activity.java:5278)  
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:583)  
at android.app.Activity.startActivity(Activity.java:5664)  
at android.app.Activity.startActivity(Activity.java:5617)  
at us.zoom.androidlib.utils.ZmActivityUtils.startActivityForeground(ZmActivityUtils.java:108)  
at us.zoom.proguard.b.a(ActivityStartHelper.java:5)  
at com.zipow.videobox.conference.ui.ZmConfPipActivity.a(ZmConfPipActivity.java:23)  
at com.zipow.videobox.conference.helper.a.b(ZmMeetingUIHelper.java:51)  
at com.zipow.videobox.conference.ui.ZmBaseConfActivity.onHomePressed(ZmBaseConfActivity.java:3)  
at us.zoom.androidlib.app.ZmCloseSystemDialogBroadcastReceiver.onReceive(ZmCloseSystemDialogBroadcastReceiver.java:55)  
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1556)

**Smartphone:**

- Device: Android Emulator
- OS: Android 12

---

<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:** [November 13, 2022, 9:30pm UTC](https://devforum.zoom.us/t/android-app-crashes-when-the-app-moves-from-the-background-to-the-foreground/77402/2 "2022-11-13T21:30:54Z")

</div>

Closed on November 13, 2022, 9:30pm UTC

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