Pure C ++ Android Application and Its Performance

Can I write a pure C ++ application for Android? (e.g. using NDK?)

Given the lack of a difference in functionality, is this simple Android C ++ application faster and consumes less memory than an Android Java application? In my guess, I assume this is YES, because a C ++ application will not do garbage collection, which causes hiccups at a frame rate.

+6
source share
1 answer

Yes and yes, as Google says:

"Using native code does not automatically increase productivity, but always increases the complexity of the application ... If you write your own code, your applications are still packaged in an .apk file and they still run inside the virtual machine on the device. The main application model for Android does not change.

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

(Personally, I do not agree that writing in C ++ automatically makes a more complex program than Java, I would even say it in a different way for an experienced C ++ programmer)

+9
source

Source: https://habr.com/ru/post/917770/


All Articles