March 2013
Intermediate to advanced
346 pages
8h 4m
English
Android NDK allows you to write assembly code at JNI programming. Assembly code is sometimes used to optimize the critical portion of code to achieve the best performance. This recipe does not intend to discuss how to program in assembly. It describes how to integrate assembly code in JNI programming instead.
Read the Passing parameters and receiving returns in primitive types recipe before you continue.
The following steps create a sample Android project that integrates the assembly code:
AssemblyInJNI. Set the package name as cookbook.chapter2. Create an activity named AssemblyInJNIActivity. Under the project, create a folder named jni. Refer to the Loading native ...