Chapter 1. Hello NDK

In this chapter, we will cover the following recipes:

  • Setting up an Android NDK development environment in Windows
  • Setting up an Android NDK development environment in Ubuntu Linux
  • Setting up an Android NDK development environment in Mac OS
  • Updating Android NDK
  • Writing a Hello NDK program

Introduction

Android NDK is a toolset that allows developers to implement a part of or an entire Android application in a native language, such as C, C++, and assembly. Before we start our journey to NDK, it is important to understand the advantages of NDK.

First of all, NDK may improve application performance. This is usually true for many processor-bound applications. Many multimedia applications and video games use native code for processor-intensive ...

Get Android Native Development Kit Cookbook 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.