O'Reilly logo

Android NDK Beginner's Guide by Sylvain Ratabouil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Porting Existing Libraries to Android

There are two main reasons why one would be interested in the Android NDK: first, for performance, and second, for portability. In the previous chapters, we have seen how to access main native Android APIs from native code for efficiency purposes. In this chapter, we are going to bring the whole C/C++ ecosystem to Android. Well, at least discovering the path, as decades of C/C++ development would be difficult to fit the limited memory of mobile devices anyway! Indeed, C and C++ are still some of the most widely used programming languages nowadays.

In previous NDK releases, portability was limited due to the partial support of C++, especially Exceptions and Run-Time Type information (or RTTI , a basic ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required