March 2013
Intermediate to advanced
346 pages
8h 4m
English
This recipe discusses how to create and terminate native threads at Android NDK.
Readers are expected to know how to create an Android NDK project. We can refer to the Writing a Hello NDK program recipe in Chapter 1, Hello NDK, for detailed instructions.
The following steps describe how to create a simple Android application with multiple native threads:
NativeThreadsCreation. Set the package name as cookbook.chapter6.nativethreadscreation. Refer to the Loading native libraries and registering native methods recipe in Chapter 2, Java Native Interface for more detailed instructions.