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, native code on Android generally doesn't result in a noticeable performance improvement, but it does increase the complexity of the app.


The following native libraries are available:

Library Notes Native Android activity support
libc C library
libdl Dynamic linker Native OpenGL surface management OpenGL ES 1.0 OpenGL ES 2.0 JNI graphics
liblog Android logging
libm Math library OpenSL ES 1.0.1 audio support OpenMAX AL 1.0.1 support
libz Zlib compression

Minimal support is available for C++.