# Zoom Android Credentials

**URL:** <https://devforum.zoom.us/t/zoom-android-credentials/17717>\
**Category:** Android\
**Created:** [May 14, 2020, 7:05pm UTC](https://devforum.zoom.us/t/zoom-android-credentials/17717 "2020-05-14T19:05:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![thefantastic4it](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@thefantastic4it](https://devforum.zoom.us/u/thefantastic4it)\
**Post date:** [May 14, 2020, 7:05pm UTC](https://devforum.zoom.us/t/zoom-android-credentials/17717/1 "2020-05-14T19:05:02Z")

</div>

Hi,

Regarding the documentation of Android SDK here [https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-your-first-zoom-app/join-meeting](https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-your-first-zoom-app/join-meeting)

You have to initialize the SDK by doing

```auto
ZoomSDK zoomSDK = ZoomSDK.getInstance();

if(savedInstanceState == null) {
    zoomSDK.initialize(this, APP_KEY, APP_SECRET, WEB_DOMAIN, this);
}

```

So, do I have to set the APP\_KEY and APP\_SECRET on the client app? That’s not secure at all.

There is a comment on this link [https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-your-first-zoom-app/preparation](https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-your-first-zoom-app/preparation)

```auto
Please be aware that all hard-coded variables and constants 
* shown in the documentation and in the demo, such as Zoom Token, 
* Zoom Access, Token, etc., are ONLY FOR DEMO AND TESTING PURPOSES.
* We STRONGLY DISCOURAGE the way of HARDCODING any Zoom Credentials
* (username, password, API Keys & secrets, SDK keys & secrets, etc.)
* or any Personal Identifiable Information (PII) inside your application. 
* WE DON’T MAKE ANY COMMITMENTS ABOUT ANY LOSS CAUSED BY HARD-CODING CREDENTIALS
* OR SENSITIVE INFORMATION INSIDE YOUR APP WHEN DEVELOPING WITH OUR SDK.

```

**Right, so I must not use hardcoding constants. How should I initialize the SDK on the Android App without hardcoding the credentials on the client?**

Can I generate a JWT Token to Join the call for Android? Reading here [https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/sdk-initialization](https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/sdk-initialization).

It says

### Authenticate using JWT

As of Android SDK version 4.4.57220.1211, the iOS SDK can be initialized using JWT for added security, convenience and versatility.

Why do you refer to iOS in that section that is meant Android, I don’t quite get if the Android SDK can use JWT or not.

At the bottom section of the link shows

```auto
ZoomSDK sdk = ZoomSDK.getInstance();
sdk.initialize(context, APP_KEY, APP_SECRET, (ZoomSDKInitializeListener)this);

```

The parameters in the function (from first to last):

| Parameter | Definition |
| --- | --- |
| Context | Android context |
| appKey | Your SDK key |
| appSecret | Your SDK secret |
| listener | Listener for initialize result |

No JWT token parameter here, so I must assume that you can’t use JWT token, am I right?

Going back to the original question… How can I initialize the SDK on the client app without harcoding the keys?

Thanks

---

<div class="post-metadata">

**Author:** ![arunrsaraswathi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/arunrsaraswathi/32/8280_2.png) [@arunrsaraswathi](https://devforum.zoom.us/u/arunrsaraswathi)\
**Post date:** [May 14, 2020, 7:08pm UTC](https://devforum.zoom.us/t/zoom-android-credentials/17717/2 "2020-05-14T19:08:35Z")

</div>

+1 here.  
I tried this [https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-your-first-zoom-app/preparation](https://marketplace.zoom.us/docs/sdk/native-sdks/android/build-your-first-zoom-app/preparation)  
and it says ““ZoomSDK has not been initialized successfully””  
Also this method seems to be depricated. Then how would I connect/ join a meeting ?

Any suggestions would be appreciated

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 15, 2020, 1:02am UTC](https://devforum.zoom.us/t/zoom-android-credentials/17717/3 "2020-05-15T01:02:46Z")

</div>

Hi guys,

Thanks for the reply. Please refer to the following implementation for SDK initialization([https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/initsdk/InitAuthSDKHelper.java#L36](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/initsdk/InitAuthSDKHelper.java#L36)):

```auto
ZoomSDKInitParams initParams = new ZoomSDKInitParams();
            initParams.jwtToken = SDK_JWTTOKEN;
            initParams.enableLog = true;
            initParams.domain=AuthConstants.WEB_DOMAIN;
            mZoomSDK.initialize(context, this, initParams);

```

You may pass the jwtToken to the ZoomSDKInitParams object and call the `initialize(context, listener, params)` interface to initialize the SDK.

Please note that the SDK initialization is an async call, please wait until the callback `onZoomSDKInitializeResult` to return success to proceed to the next action.

I will contact the doc team to improve the documentation.

Hope this helps.Thanks!

---

<div class="post-metadata">

**Author:** ![thefantastic4it](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@thefantastic4it](https://devforum.zoom.us/u/thefantastic4it)\
**Post date:** [May 15, 2020, 6:07pm UTC](https://devforum.zoom.us/t/zoom-android-credentials/17717/4 "2020-05-15T18:07:44Z")

</div>

Thanks @carson.zoom. It is great that there is a sdksample, it should be in the doc as a guide or something.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 19, 2020, 9:46am UTC](https://devforum.zoom.us/t/zoom-android-credentials/17717/5 "2020-05-19T09:46:18Z")

</div>

Hi [thefantastic4it](https://devforum.zoom.us/u/thefantastic4it),

Glad to be helpful. I have contacted the doc team to update the part in the doc:[https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/sdk-initialization;](https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/sdk-initialization;) Please always to refer to the implementation in our demo app as sometimes the SDK doc might take a little bit more time to update.

Happy Zooming! 🙂

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:24pm UTC](https://devforum.zoom.us/t/zoom-android-credentials/17717/6 "2020-08-21T21:24:22Z")

</div>


