Sample Walkthroughs

Stay organized with collections Save and categorize content based on your preferences.

This section explains several of the sample apps provided with the NDK. It assumes that you already have a working knowledge of programming in Java and native code, and focuses on issues particular to working with the NDK.

It discusses the following samples:

  • hello-jni: A very basic app that illustrates core workings of the NDK.
  • native-activity: An app that shows the fundamentals of how to construct a purely native app. It places particular emphasis on the android_native_app_glue library.
  • Teapot: A simple OpenGL demo, showcasing the ndk_helper class.