March 2013
Intermediate to advanced
346 pages
8h 4m
English
The previous recipe discusses that Android JNI supports three different kinds of references. The references are used to access the reference data types, including string, class, instance object, and array. This recipe focuses on class manipulations in Android JNI.
The Managing References in NDK recipe should be read first before going through this recipe.
The following steps describe how to build a sample Android application that illustrates class manipulation in JNI:
ClassManipulation. Set the package name as cookbook.chapter2. Create an activity named ClassManipulationActivity. Under the project, create a folder named jni. Refer to the Loading native libraries and registering ...