On 2012-07-23 08:59, Paulo Pinto wrote:
No, actually you are still dealing with JNI. Google's position on native code, is that you should use it just for code hotspots, gamming or to port "legacy" code.
The Android native applications APIs are C wrappers around JNI calls, meaning you get a performance hit when calling them due to marshling. This is described in the STABLE-APIS.html document delivered as part of the NDK. [quote]Starting from API level 9, it is possible to entirely write an Android application with native code (i.e. without any Java). That does not mean that your code does not run inside a VM though, and most of the features of the platform will still need to be accessed through JNI.[/quote]
That is just so wrong. -- /Jacob Carlborg