Learning about callbacks from native to Java via Android NDK Beginner's Book