Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Building a JNI library requires a basic understanding of JNI, a C source file, and the appropriate entries in the Android.mk file. The next few sections break down these requirements, step by step. We begin with a brief discussion of how code is mapped between the Java and C language environments.
As mentioned earlier, a JNI library exposes one or more functions to a Java-based application through a specific naming convention. A C language function is named according to the following guideline: