Going Native with the NDK

  • Mario Zechner
  • J. F. DiMarzio
  • Robert Green


After all the 3D extravagance in the past three chapters, it’s time to look into one more aspect of programming games for Android. While Java and the Dalvik VM are sufficient for a lot of game genres in terms of execution speed, there are times when you need a bit more power. This is especially true for physics simulations, complex 3D animation, collision detection, and so on. This type of code is best written in more “to-the-metal” languages like C/C++ or even assembly language. The Android native development kit (NDK) lets us do exactly that.


Java Code Source File Java Class Primitive Type Native Code 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Mario Zechner, J.F. DiMarzio and Robert Green 2016

Authors and Affiliations

  • Mario Zechner
    • 1
  • J. F. DiMarzio
    • 2
  • Robert Green
    • 3
  1. 1.GrazAustria
  2. 2.CelebrationUSA
  3. 3.PortlandUSA

Personalised recommendations