Hi All,
New to the Zoom Android SDK and having trouble building a new app, after successfully building and running the sample.
Description
Project/App builds fine, but the app cannot initialise the SDK.
I have retained the code InitAuthZoomSDKHelper and InitAuthSDKActivity in the new app, and use this. However, the onZoomSDKInitializeResult function is never called from the helper, and the SDK is never initialised.
I have correctly imported the commonlib and mobilertc archives, and set the dependencies and the code builds fine. It is just at runtime the SDK fails to initialise.
As stated, the sample app from the SDK builds and runs fine.
Which version?
SDK: 2020-06-30 @ v5.0.24433.0616
Android Studio: 4.0
To Reproduce(If applicable)
Steps to reproduce the behavior:
Create a blank Android Project/App
Import commonlib and mobilertc archives as per SDK docs.
Import selected components from the “sample” SDK app
Build the app
Run the app in debug with a breakpoint after SDK initialisation.
See code fail because SDK is not initialised.
Smartphone (please complete the following information):
Device: Pixel 2
OS: Android
Version 10
Additional context
Add any other context about the problem here.
Hi All,
I have tried now several projects with the SDK imported. None can initialise the SDK. Only the sample apps provided.
Any assistance would be greatly appreciated.
Cheers
Thanks for using Zoom SDK. Based on the steps provided, it seems like everything is looking good but there is one thing that is missing: Did you add ZoomSDKInitializeListener to your class that calls the SDK initialize and has the onZoomSDKInitiazeResult callback?
Hi Carson,
Originally, I took the “sample” app in it’s entirety into a new Project, so yes.
Then when I created a completely clean project and followed all the SDK instructions I did call the SDK initialize and implemented the InitializeResult callback. Still no joy.
Cheers
Essentially, in all cases except in the mobilertc-android-studio project that comes with the SDK with examples, the onZoomSDKInitializeResult callback is never called. I am at a complete loss.
I have been modifying the “sample” app to try and progress on what is an urgent app to be developed by the end of this coming week. I have been unable to make the scheduled meetings list (PreMeetingExampleActivity created) clickable, which I need to have to start meetings from that view.
Can you please advise the best way to do this?
I have altered the layout XML to add both clickabel and focusable true, but no matter what I cannot ever trigger any form of onItemClick(). If I add an onClick listener to the ViewHolder sub class of MeetingsListAdapter, I can capture the clicks, but cannot decipher the item to fetch the meeting ID and password to begin the meeting.
Any advise on this would also be appreciated.
Hi @jon.zoom@bineeshtvr1
Is there any solution for the mentioned issue? Sometimes Zoom SDK won’t return with any callback after calling:
ZoomSDK.getInstance().initialize(this, object : ZoomSDKInitializeListener { …
We are aware of an issue in the latest version of the SDK where callbacks sometimes will not happen when attempting to initialize the same SDK instance multiple times. We have identified a fix for this, which should be available in a new version of the SDK next month (tentative date). The issue we’re aware of only happens when initialize is called more than once, so let me know if the issue you’re seeing is different.
Actually, in our case this happens usually for the first time after app install/update but not always.
I can see from the logs that initialize method is called only once.
Trying again will succeed and usually go on working properly.
So it feels like there’s something with the first time trying to initialize.
Please let me know if you have any more info about it.
val initParams = ZoomSDKInitParams()
initParams.appKey = APP_KEY
initParams.appSecret = APP_SECRET
initParams.enableLog = true
initParams.logSize = 50
initParams.domain = ZOOM_DOMAIN
initParams.videoRawDataMemoryMode =
ZoomSDKRawDataMemoryMode.ZoomSDKRawDataMemoryModeStack
ZoomSDK.getInstance().initialize(this, object : ZoomSDKInitializeListener {
override fun onZoomSDKInitializeResult(errorCode: Int, internalErrorCode: Int) {
//this is not called
}
override fun onZoomAuthIdentityExpired() {
//this is not called
}
}, initParams)
@jon.zoom let me know please if you need anything else. As I mentioned most of the times it’s working correctly but after first app run sometimes there’s no callback.
Thanks for providing that. It looks like everything here is correct, so this may just be a different presentation of the bug mentioned earlier. To be sure, can you send the SDK logs over by opening a ticket on the developer support site? The logs can be found under sdcard/Android/data/${PACKAGE_NAME}/logs.