Native libraries

The QNX CAR Runtime for APK makes available native libraries to apps that include native code.

About using native code

Apps written for the QNX Runtime for APK may include native Android code. After an .apk file has been built with the Android tools, it must be converted to a QNX compatible .bar file. (See "Developing apps for the APK runtime".) QNX has ported all the Android Linux libraries to the QNX platform, so any plugin code that requires these libraries will run.

Note that Google discourages the use of JNI plug-ins to access native libraries. Implementing parts of an app in native-code languages (using the NDK toolset) may be helpful if you are re-using existing code, but as is explained on the Android developer site at https://developer.android.com/tools/sdk/ndk/index.html, native code on Android generally doesn't result in a noticeable performance improvement, but it does increase the complexity of the app.

Libraries

The following native libraries are available:

Library Notes
libandroid.so Native Android activity support
libc C library
libdl Dynamic linker
libEGL.so Native OpenGL surface management
libGLESv1_CM.so OpenGL ES 1.0
libGLESv2.so OpenGL ES 2.0
libjnigraphics.so JNI graphics
liblog Android logging
libm Math library
libOpenSLES.so OpenSL ES 1.0.1 audio support
libOpenMAXAL.so OpenMAX AL 1.0.1 support
libz Zlib compression
Note:

Minimal support is available for C++.