Chapter two of my Android NDK Programming lesson