March 2013
Intermediate to advanced
346 pages
8h 4m
English
The previous recipe shows how we can manipulate classes in Android JNI. This recipe describes how to manipulate instance objects in Android NDK programming.
The following recipes should be read first before going through this recipe:
Now we'll create an Android project with native methods demonstrating the usage of JNI functions related to instance objects. Perform the following steps:
ObjectManipulation. Set the package name as cookbook.chapter2. Create an activity named ObjectManipulationActivity. Under the project, create a folder named jni. Please refer to the Loading native libraries and registering native methods ...