Initialize Vivox Android services
How to initialize the Vivox Android services.
Read time 1 minuteLast updated 7 months ago
To address Android platform requirements, you must initialize the Vivox Android services that are included in the Vivox Java library by invoking the static method. Failing to do so will report even though the underlying native Vivox SDK library is initialized.
com.vivox.sdk.JniHelpers.init(...)SDK_UNINITIALIZED-
A call toloads the Vivox Android library, the native Vivox library, and the application's
JniHelpers.init(getApplicationContext(), null, new String[]{"app-so-lib-name"});library.libapp-so-lib-name.so -
A call toonly loads the Vivox Android library and the native Vivox library. It is then the application developer's responsibility to separately load the application's
JniHelpers.init(getApplicationContext());library.libapp-so-lib-name.so
There are six variants of . The Android app context is the only non-optional argument:
com.vivox.sdk.JniHelpers.init(...)public static boolean init(Context appContext);public static boolean init(Context appContext, String certFile);public static boolean init(Context appContext, String certFile, String[] libs);public static boolean init(String vivoxLibraryPath, Context appContext);public static boolean init(String vivoxLibraryPath, Context appContext, String certFile);public static boolean init(String vivoxLibraryPath, Context appContext, String certFile, String[] libs);
For an example, see
SDKSampleApp/Source/src/main/java/com/vivox/sampleapp/MainActivity.java