May 2017
Beginner to intermediate
470 pages
10h 49m
English
Next, let's test the Android application with the ARM JNI library.
The JNI library can be found at ch05/test2/jni. The processor architecture that can be supported is defined in Application.mk as follows:
# Build both ARMv5TE and ARMv7-A and x86 machine code. # armeabi armeabi-v7a APP_ABI := armeabi armeabi-v7a APP_PLATFORM := android-23
We can see that we build the JNI library for armeabi and armeabi-v7a. Let's build the JNI library using NDK first:
$ cd ch05/test2/jni$ ./build.sh[armeabi] Install : libHelloJNI.so => libs/armeabi/libHelloJNI.so[armeabi-v7a] Install: libHelloJNI.so => libs/armeabi-v7a/libHelloJNI.so
After we build the JNI library, we can import the Android source code to Eclipse or ...
Read now
Unlock full access