Initialize Vivox Android services
How to initialize the Vivox Android services.
阅读时间1 分钟最后更新于 12 天前
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