Initialize Vivox Android services
How to initialize the Vivox Android services.
Read time 1 minuteLast updated 20 hours ago
To address Android platform requirements, you must initialize the Vivox Android services that are included in the Vivox Java library by invoking the
com.vivox.sdk.JniHelpers.init(...)SDK_UNINITIALIZED-
A call to loads 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 to only 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
com.vivox.sdk.JniHelpers.init(...)For an example, seepublic 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);
SDKSampleApp/Source/src/main/java/com/vivox/sampleapp/MainActivity.java