March 2013
Intermediate to advanced
346 pages
8h 4m
English
Android logging system provides a method for collecting logs from various applications into a series of circular buffers. The logcat command is
used to view the logs. Log message is the simplest method of debugging a program, yet one of the most powerful ones. This recipe focuses on message logging in NDK.
The following steps create our sample Android project:
NDKLoggingDemo. Set the package name as cookbook.chapter3. Create an activity named NDKLoggingDemoActivity. Please refer to the Loading native libraries and registering native methods recipe of Chapter 2, Java Native Interface, if you want more detailed instructions.