I downloaded the Video SDK: zoom-instant-sdk-android-1.0.2
When the app runs, it crashes. I’m running this on a Pixel 2 XL that is using Android 11.
UPDATE:
I was able to get the app to run. If you run the app from within Android Studio, it will crash. However, if you first go to the app’s settings in Android, delete the cache and then manually set the permissions for everything the app is requesting and then launch the app manually from the launcher icon, it will run. This tells me that the demo app is relying on some permissions being enabled before launching. Personally, I would modify the demo app to check for the file storage permissions when the Welcome screen is launched and requesting permission if it isn’t enabled. The developer of the demo app probably only tested the app on a version of Android prior to 11. It should be tested on Android 11+.
The following is the log data:
2021-03-31 15:09:35.613 11846-11846/us.zoom.InstantSDKPlaygroud E/AndroidRuntime: FATAL EXCEPTION: main
Process: us.zoom.InstantSDKPlaygroud, PID: 11846
java.lang.RuntimeException: Unable to start activity ComponentInfo{us.zoom.InstantSDKPlaygroud/us.zoom.sdksample.WelcomeActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String android.content.SharedPreferences.getString(java.lang.String, java.lang.String)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String android.content.SharedPreferences.getString(java.lang.String, java.lang.String)' on a null object reference
at com.zipow.videobox.util.PreferenceUtil.readStringValue(PreferenceUtil.java:312)
at org.webrtc.voiceengine.VoiceEngineCompat.selectAudioDeviceAPIType(VoiceEngineCompat.java:229)
at org.webrtc.voiceengine.VoiceEngineCompat.isBluetoothScoSupported(VoiceEngineCompat.java:154)
at us.zoom.internal.SDKApplication.onSDKCreated(SDKApplication.java:123)
at us.zoom.internal.SDKApplication.initializeForSDK(SDKApplication.java:67)
at us.zoom.sdk.c.initialize(ZoomInstantSDKImpl.java:464)
at us.zoom.sdksample.WelcomeActivity.initSDK(WelcomeActivity.java:186)
at us.zoom.sdksample.WelcomeActivity.onCreate(WelcomeActivity.java:50)
at android.app.Activity.performCreate(Activity.java:8000)
at android.app.Activity.performCreate(Activity.java:7984)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
2021-03-31 15:09:35.613 11846-11846/us.zoom.InstantSDKPlaygroud E/CrashHandler: java.lang.RuntimeException: Unable to start activity ComponentInfo{us.zoom.InstantSDKPlaygroud/us.zoom.sdksample.WelcomeActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String android.content.SharedPreferences.getString(java.lang.String, java.lang.String)' on a null object reference
2021-03-31 15:09:35.613 11846-11846/us.zoom.InstantSDKPlaygroud E/CrashHandler: java.lang.RuntimeException: Unable to start activity ComponentInfo{us.zoom.InstantSDKPlaygroud/us.zoom.sdksample.WelcomeActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String android.content.SharedPreferences.getString(java.lang.String, java.lang.String)' on a null object reference