Pure c++ app for Android and its performance

Can I write a pure C++ app for Android? (for example, using NDK?)

Considering there's no difference of functionality, is pure Android C++ app faster and consumes lesser memory than Android Java app? In just my guess, I guess it is YES because C++ app won't do garbage collection which causes frame rate hiccup.

Answers


Yes and yes, althrough Google says:

"Using native code does not result in an automatic performance increase, but always increases application complexity... If you write native code, your applications are still packaged into an .apk file and they still run inside of a virtual machine on the device. The fundamental Android application model does not change."

from http://developer.android.com/sdk/ndk/index.html

(Personally, I don't agree that writing in C++ automatically makes a more complex program than Java, I'd even say it's the other way around for a skilled C++ programmer)


Need Your Help

Finding the maximum occurring string within a text file

php html text flat-file

So I've seen questions asked before that are along the lines of finding the maximum occurence of a string within a file but all of those rely on knowing what to look for.

IIS - Is it possible to have different access levels on different directories of a website?

iis iis-7 web authorization port

I am looking for a way to restrict access to one of directories withing my website to be accessible via a specific port number (i.e. 5353) not by port 80.