What Is In the NDK?

The NDK is a set of tools you use to develop native code for your application. Everything is in a single directory, which you download as an archive file from http://d.android.com/sdk/ndk. For example, the Windows version of the NDK revision 6b contains these directories:

  • build
  • docs
  • platforms
  • samples
  • sources
  • tests
  • toolchains

A few files are also located at the root of the NDK directory:

  • documentation.html
  • GNUmakefile
  • ndk-build
  • ndk-gdb
  • ndk-stack
  • README.txt
  • RELEASE.txt

The NDK documentation is nowhere near as thorough as the SDK on http://d.android.com, so start by opening documentation.html with your favorite web browser. The README text file is also begging you so go ahead and oblige.

The NDK is a collection of six components: ...

Get Pro Android Apps Performance Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.