March 2013
Intermediate to advanced
346 pages
8h 4m
English
JNI exposes strings, classes, instance objects, and arrays as reference types. This recipe will discuss arrays in JNI.
You should make sure you've read the following recipes before going through this recipe:
In this section, we will create a sample Android project that demonstrates how to manipulate arrays in JNI.
ArrayManipulation. Set the package name as cookbook.chapter2. Create an activity named ArrayManipulationActivity. Under the project, create a folder named jni. Refer to the Loading native libraries and registering native methods recipe of this chapter for more detailed instructions.arraytest.c ...