Re:The strange case of virtual machines on telephones
by Tichy on Friday August 27, 2010 @02:51AM
(#1638188)
I thought the NDK just interfaces to the Android Java API, so there would still be a lot of Java code in your app?
[ Parent
| on HN ]
Re:The strange case of virtual machines on telephones
by ergo98 on Friday August 27, 2010 @08:23AM
(#1638578)
The primary API was provided in Java, so yes from the NDK for many needs you have to step back to Java-world momentarily. This is a simply a limit of time however (given that Dalvik was their primary app runtime for other reasons) -- Google has been pushing more and more functionality directly to the NDK (e.g. 2.2 gives you the ability to fully use OpenGL from native code).
However that is neither here nor there. You have the full ability to fall to native, to go hog wild with memory references and uninitialized pointers and stack overflows and trying to break free of the box you are placed within (the process boundaries). You have the ability to include C code from other projects for codecs and processing, etc.