# App reverts back to main activity when you click "join meeting"

**URL:** <https://devforum.zoom.us/t/app-reverts-back-to-main-activity-when-you-click-join-meeting/42676>\
**Category:** Android\
**Created:** [February 6, 2021, 1:02am UTC](https://devforum.zoom.us/t/app-reverts-back-to-main-activity-when-you-click-join-meeting/42676 "2021-02-06T01:02:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnsodd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/johnsodd/32/22655_2.png) [@johnsodd](https://devforum.zoom.us/u/johnsodd)\
**Post date:** [February 6, 2021, 1:02am UTC](https://devforum.zoom.us/t/app-reverts-back-to-main-activity-when-you-click-join-meeting/42676/1 "2021-02-06T01:02:26Z")

</div>

**Description**  
When we launch our Zoom customized application you immediately see an “initialize Zoom SDK Successfully” message but the app reverts back to the main activity after you click the join meeting button.

When using the zoom demo app instead of our zoom customization, then repeating the same process (entering meeting number, entering user ID, and clicking the “join meeting button”), the app prompts you for the password, but when you enter the password it also just reverts back to the main activity

**Which version?**  
v5.4.3.613

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
[0] Launch the app  
[1] Enter meeting number  
[2] Enter username (zoom registered user’s email address)  
[3] Click join meeting  
[4] App returns to the main activity

**Screenshots**  
If applicable, add screenshots to help explain your problem.

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

- Device: Galaxy Note 8
- OS: Android version 9

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![Fred\_Luo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fred_luo/32/62_2.png) [@Fred\_Luo](https://devforum.zoom.us/u/Fred_Luo)\
**Post date:** [February 7, 2021, 1:50am UTC](https://devforum.zoom.us/t/app-reverts-back-to-main-activity-when-you-click-join-meeting/42676/2 "2021-02-07T01:50:21Z")

</div>

@johnsodd

Please check the logcat whether there is a crash log.

Can you upload a sdk log? sdk log path: /sdcard/Android/data/package name/logs

Thanks

---

<div class="post-metadata">

**Author:** ![johnsodd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/johnsodd/32/22655_2.png) [@johnsodd](https://devforum.zoom.us/u/johnsodd)\
**Post date:** [February 7, 2021, 7:22pm UTC](https://devforum.zoom.us/t/app-reverts-back-to-main-activity-when-you-click-join-meeting/42676/3 "2021-02-07T19:22:00Z")

</div>

There is no log file there. Maybe I missed turning on debugging. I did see this line of code that was commented out.

// TODO: Add functionality to this listener (e.g. logs for debugging)  
ZoomSDKInitializeListener listener = new ZoomSDKInitializeListener() {  
/\*\*  
\* @param errorCode {@link us.zoom.sdk.ZoomError#ZOOM\_ERROR\_SUCCESS} if the SDK has been initialized successfully.  
\*/

However, I got a lot of errors when I uncommented it, so I just left it alone. Can you advise how to generate this log file.

---

<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:** [February 8, 2021, 6:07pm UTC](https://devforum.zoom.us/t/app-reverts-back-to-main-activity-when-you-click-join-meeting/42676/4 "2021-02-08T18:07:11Z")

</div>

Hi @johnsodd,

Can you please ensure that you have enabled logs through the SDK when it was initialized? Also, if you are running a release build of your app, that can also impact whether or not the logs will be generated.

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:** [February 11, 2021, 12:06am UTC](https://devforum.zoom.us/t/app-reverts-back-to-main-activity-when-you-click-join-meeting/42676/5 "2021-02-11T00:06:25Z")

</div>

Hi @johnsodd,

After investigating the logs you sent over, it appears that this behavior is being caused by a crash. The cause of this crash is that you are trying to access the `MeetingService`'s methods when it is null. Usually, this happens when you try using the SDK to join a meeting before it has been successfully initialized.

Please ensure that you are receiving the successful callback described in our documentation [here](https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/sdk-initialization#handling-successful-response) before attempting to access the `MeetingService` through the SDK.

Thanks!
