Description
I integrated the Zoom SDK and it works great most of the time. I just got 2 crashes in Crashlytics after releasing a version with the Zoom SDK to customers.
The crash log in crashlytics:
Fatal Exception: android.util.SuperNotCalledException: Activity {datosapp.datos_healthad.com.sheba/com.zipow.videobox.SimpleInMeetingActivity} did not call through to super.onCreate()
at android.app.ActivityThread.performLaunchActivity + 2621(ActivityThread.java:2621)
at android.app.ActivityThread.handleLaunchActivity + 2726(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage + 1477(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage + 102(Handler.java:102)
at android.os.Looper.loop + 154(Looper.java:154)
at android.app.ActivityThread.main + 6119(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run + 886(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main + 776(ZygoteInit.java:776)
at de.robv.android.xposed.XposedBridge.main + 107(XposedBridge.java:107)
Which version?
4.3.47200.0322
Smartphone (please complete the following information):
Thanks for using Zoom SDK. Based on the error message, you will need to add the following in the 1st line of your onCreate method:
super.onCreate(savedInstanceState);
When the base class (In this case, onCreate) methods are overridden by the derived class, the base class methods need to be called explicitly to perform the expected operation.
I call this code from my main activity onCreate after calling super.onCreate(savedInstanceState):
public void initialize(Activity activity, Bundle savedInstanceState) {
mActivity = activity;
ZoomSDK zoomSDK = ZoomSDK.getInstance();
mLog.debug(“ZoomUtils initialize”);
I don’t call SimpleInMeetingActivity explicitly. I don’t the exact scenario, since I got this crash from Crashlytics.
All I do with the SDK is initialise it and join a meeting. This is the code for joinMeeting:
public void joinMeeting(String meetingNo, String displayName) {
if(meetingNo.length() == 0) {
mLog.debug("ZoomUtils joinMeeting no meeting ID");
return;
}
ZoomSDK zoomSDK = ZoomSDK.getInstance();
if(!zoomSDK.isInitialized()) {
mLog.debug("ZoomUtils joinMeeting SDK not initialized");
return;
}
MeetingService meetingService = zoomSDK.getMeetingService();
JoinMeetingOptions opts = new JoinMeetingOptions();
opts.meeting_views_options = MeetingViewsOptions.NO_BUTTON_SHARE|MeetingViewsOptions.NO_BUTTON_MORE|MeetingViewsOptions.NO_BUTTON_PARTICIPANTS;
JoinMeetingParams params = new JoinMeetingParams();
params.displayName = displayName;
params.meetingNo = meetingNo;
int code = meetingService.joinMeetingWithParams(mActivity, params, opts);
if (code != 0) {
mLog.debug("ZoomUtils joinMeeting code " + code);
Utils.showErrorDialog(mActivity, "Zoom", "Something went wrong, please try again later");
}
}
Thanks for the information. We have found the root cause of this issue. This rarely happens, and this error appears if and only if your app tries to call the Webinar QA module before the webinar meeting successfully starts or when failed to start a webinar.