# What is the best practice for Zoom SDK for Android

**URL:** <https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401>\
**Category:** Android\
**Created:** [November 8, 2020, 11:26am UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401 "2020-11-08T11:26:18Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![mohammed.adel.sorour](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@mohammed.adel.sorour](https://devforum.zoom.us/u/mohammed.adel.sorour)\
**Post date:** [December 23, 2020, 7:53pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/21 "2020-12-23T19:53:39Z")

</div>

I am talking about the folder created after importing the .aar files  
Commonlib is about 12mb  
And mobilertc is 800  
Anyway i will upload them and i will keep you on touch with any further issues  
Merry Christmas

---

<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:** [December 23, 2020, 10:10pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/22 "2020-12-23T22:10:37Z")

</div>

Hi @mohammed.adel.sorour,

The size of these folders are going to vary based on factors related to your project’s build script. Since you are using Flutter, I cannot speculate on how that will impact the files generated by that directory during your build process.

Overall, the size of these folders are expected to be many times larger than the libraries are when shipped with your APK.

Thanks!

---

<div class="post-metadata">

**Author:** ![mohammed.adel.sorour](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@mohammed.adel.sorour](https://devforum.zoom.us/u/mohammed.adel.sorour)\
**Post date:** [December 29, 2020, 10:16am UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/23 "2020-12-29T10:16:39Z")

</div>

@jon.zoom  
Hi jon  
I upload our apps to the store both of them contains the sdk  
One of the apps crashes upon opening  
With this error trace

 ![Screenshot_2020-12-29-12-10-00-351_com.miui.bugreport](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/4/74a4565e1dd3bb41c200fea5ac0be6e9b276952d.png)

---

<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:** [December 29, 2020, 6:11pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/24 "2020-12-29T18:11:02Z")

</div>

Hi @mohammed.adel.sorour,

Since you are using Flutter, it is unlikely that we will be able to assist with build-related issues unless you are able to reproduce in a native app. Can you please let me know if you see this in a native Android app as well?

Thanks!

---

<div class="post-metadata">

**Author:** ![mohammed.adel.sorour](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@mohammed.adel.sorour](https://devforum.zoom.us/u/mohammed.adel.sorour)\
**Post date:** [December 29, 2020, 6:24pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/25 "2020-12-29T18:24:14Z")

</div>

Yes this error is at the level of the native app  
I receive this error with android studio

---

<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:** [December 29, 2020, 10:48pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/26 "2020-12-29T22:48:57Z")

</div>

Hi @mohammed.adel.sorour,

Looking more closely at the error you are encountering, I may have an idea of what could be causing this which would not be impacted by using Flutter. If you are utilizing proguard, please ensure that you have the same proguard rules as those defined in our [sample app](https://github.com/zoom/zoom-sdk-android/blob/master/proguard.cfg).

Thanks!

---

<div class="post-metadata">

**Author:** ![mohammed.adel.sorour](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@mohammed.adel.sorour](https://devforum.zoom.us/u/mohammed.adel.sorour)\
**Post date:** [December 29, 2020, 11:10pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/27 "2020-12-29T23:10:21Z")

</div>

i don’t use any proguard and i have no clue regarding this error

---

<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:** [December 30, 2020, 12:51am UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/28 "2020-12-30T00:51:09Z")

</div>

Hi @mohammed.adel.sorour,

Have you manually removed proguard from your project in Android Studio? If you have not, it usually is present and only applied to release variants of your app. This would explain why you are seeing this error only in the production version of your app.

Thanks!

---

<div class="post-metadata">

**Author:** ![mohammed.adel.sorour](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@mohammed.adel.sorour](https://devforum.zoom.us/u/mohammed.adel.sorour)\
**Post date:** [December 30, 2020, 10:04am UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/29 "2020-12-30T10:04:13Z")

</div>

the proguard tip was the answers  
thanks Jon you really saved my day this issues was live  
Really i am very happy after solving this problem , you ROCKS 🙂

---

<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:** [December 30, 2020, 6:01pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/30 "2020-12-30T18:01:42Z")

</div>

Hi @mohammed.adel.sorour,

Really glad to hear everything is working now! Please don’t hesitate to reach out if you encounter any other issues.

Thanks!

---

<div class="post-metadata">

**Author:** ![mohammed.adel.sorour](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@mohammed.adel.sorour](https://devforum.zoom.us/u/mohammed.adel.sorour)\
**Post date:** [December 31, 2020, 4:23am UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/31 "2020-12-31T04:23:24Z")

</div>

Regarding the SDK secret and app key  
the documentation mentioned that NOT TO HARD code the credentials  
so in a Production situation what is the advised method to get the SDK keys  
i know about JWT but still couldn’t understand whole picture

---

<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:** [December 31, 2020, 7:05pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/32 "2020-12-31T19:05:48Z")

</div>

Hi @mohammed.adel.sorour,

We advise developers to avoid hard coding credentials because it is very easy for a malicious actor to decompile your APK and retrieve your developer credentials.

There are a few ways to make it very difficult for someone to obtain your credentials from your APK, but ultimately the only truly secure method is to generate a JWT from a remote server that only your app has access to.

Thanks!

---

<div class="post-metadata">

**Author:** ![mohammed.adel.sorour](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@mohammed.adel.sorour](https://devforum.zoom.us/u/mohammed.adel.sorour)\
**Post date:** [January 5, 2021, 1:40pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/33 "2021-01-05T13:40:27Z")

</div>

how to delete shared pref of the login user  
i only found a shared pref called "rawdata " and “UI\_settings”  
so that i am sure that the user is logout  
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:** [January 5, 2021, 5:57pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/34 "2021-01-05T17:57:03Z")

</div>

Hi @mohammed.adel.sorour,

There is no need to do anything with shared preferences to logout a user. You would simply need to call [`logoutZoom`](https://marketplacefront.zoom.us/sdk/meeting/android/us/zoom/sdk/ZoomSDK.html#logoutZoom--). 🙂

Additionally, you can check whether or not you are logged into the SDK with [`isLoggedIn`](https://marketplacefront.zoom.us/sdk/meeting/android/us/zoom/sdk/ZoomSDK.html#isLoggedIn--).

Thanks!

---

<div class="post-metadata">

**Author:** ![mohammed.adel.sorour](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@mohammed.adel.sorour](https://devforum.zoom.us/u/mohammed.adel.sorour)\
**Post date:** [January 6, 2021, 2:02pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/35 "2021-01-06T14:02:29Z")

</div>

Can i use google or Facebook sign in android sdk?

---

<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:** [January 6, 2021, 6:42pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/36 "2021-01-06T18:42:50Z")

</div>

Hi @mohammed.adel.sorour,

Currently this is only supported through the Zoom app. We have not yet added support for this flow through the SDK.

Thanks!

---

<div class="post-metadata">

**Author:** ![mohammed.adel.sorour](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@mohammed.adel.sorour](https://devforum.zoom.us/u/mohammed.adel.sorour)\
**Post date:** [January 6, 2021, 6:55pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/37 "2021-01-06T18:55:44Z")

</div>

How to auto login when the app starts every time  
Do i have to call tryautologin?

---

<div class="post-metadata">

**Author:** ![mohammed.adel.sorour](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@mohammed.adel.sorour](https://devforum.zoom.us/u/mohammed.adel.sorour)\
**Post date:** [January 8, 2021, 2:49pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/38 "2021-01-08T14:49:35Z")

</div>

Is it possible to change meeting title programmatically?  
Upon start instant meeting?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 11, 2021, 11:07pm UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/39 "2021-01-11T23:07:06Z")

</div>

Hey @mohammed.adel.sorour,

Jon is out currently, so I will be taking over this thread until he returns.  
Yes to autoLogin please use tryAutoLogin.

To change the title of the meeting, please call setMeetingTopic from the InMeetingService interface.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![aashish](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@aashish](https://devforum.zoom.us/u/aashish)\
**Post date:** [February 5, 2021, 7:56am UTC](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401/40 "2021-02-05T07:56:26Z")

</div>

> [@mohammed.adel.sorour](#):
>
> them

My app size is 150 MB. I have tried with prograd but no help. Can you please tell me how I can reduce app size?

[Previous page](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401.md?page=1)

[Next page](https://devforum.zoom.us/t/what-is-the-best-practice-for-zoom-sdk-for-android/35401.md?page=3)
