Alex Rivera | Logout

Use of Android NDK

Asked 2010-06-18T09:05:20.120
22

I'm new to the Android NDK. I want to know what is the benefit of native code in Android. How does it improve performance, and where is it (native code) used in Android?

Edit
Report

1 Answer

18

The NDK allows you to write code using C/C++ and then link it into your Java application. You can potentially increase the speed of your application. However, it may be worth reading about Replica Island, as they don't use the NDK, however achieve very fast frame rates.

The downsides to the NDK are, it only compiles to specific CPUs (whereas staying in Java land means it will work on any targetted version of Android).

answered 2010-06-18T10:32:43.917

Your Answer