Developing a basic framework to integrate the Android NDK
Now that we have successfully installed the Android SDK and NDK, we will demonstrate how to develop a basic framework to integrate native C/C++ code into a Java-based Android application. Here, we describe the general mechanism to create high-performance code for deployment on mobile devices using OpenGL ES 3.0.
OpenGL ES 3.0 supports both Java and C/C++ interfaces. Depending on the specific requirements of the application, you may choose to implement the solution in Java due to its flexibility and portability. For high-performance computing and applications that require a high memory bandwidth, it is preferable that you use the NDK for fine-grain optimization and memory management. In addition, we can port our existing libraries, such as OpenCV with Android NDK, using static library linking. The cross-platform compilation capability opens up many possibilities for real-time image and signal processing on a mobile platform with minimal...