Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
|
The majority of the code in this book is written to employ the Android SDK using the Java programming language. Looking back to chapter 13, we explored creating native executable applications for Android by writing Linux-compatible applications. The code in that chapter was written in the C language, but it didn’t produce applications that are easily executed on consumer hardware. The design approach in chapter 13 requires an unlocked developer, or rooted, device and is arguably only applicable for developers who are building custom Android builds—it’s not for the typical developer looking to deploy applications to consumer-based handsets. This chapter presents the “approved” manner of writing C code for the Android platform with assistance from the Android Native Developer Kit, or simply the NDK.