March 2013
Intermediate to advanced
346 pages
8h 4m
English
Many Android devices have built-in sensors to detect and measure motion, orientation, and other environmental conditions. It is possible to access sensors in Android NDK. This recipe will discuss how to do it in detail.
The example provided in this recipe is based on the sample code in the previous two recipes. Readers are recommended to read them first:
The following steps develop the sample Android application, which demonstrates how to access sensors from Android NDK:
nativesensors. Set the package name as cookbook.chapter5.nativesensors. Please refer to the Loading ...