Link to home
Start Free TrialLog in
Avatar of elepil
elepil

asked on

Can C++/Qt be used to create apps for Android devices?

I know Java is the language used to create Android apps. But I also read somewhere that stated C++ can be used to create Android apps, is that true? Any Android app developers out there who can confirm this?

Thanks.
Avatar of Wayne88
Wayne88
Flag of Canada image

I have use Eclipse SDK (Java) to mostly create Android apps but yes I can confirm you can also program part of your Android apps using C++ but the benefits are limited.  Here is the NDK:

"Android NDK

The NDK is a toolset that allows you to implement parts of your app using native-code languages such as C and C++. Typically, good use cases for the NDK are CPU-intensive applications such as game engines, signal processing, and physics simulation.

Before downloading the NDK, you should understand that the NDK will not benefit most apps. As a developer, you need to balance its benefits against its drawbacks. Notably, using native code on Android generally does not result in a noticable performance improvement, but it always increases your app complexity. In general, you should only use the NDK if it is essential to your app—never because you simply prefer to program in C/C++. When examining whether or not you should develop in native code, think about your requirements and see if the Android framework APIs provide the functionality that you need."

http://developer.android.com/tools/sdk/ndk/index.html
Avatar of elepil
elepil

ASKER

part of your Android apps using C++

So C++ can only be "part" of an Android app? You can't write an Android app entirely in C++ and do away with Java?
ASKER CERTIFIED SOLUTION
Avatar of Wayne88
Wayne88
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of elepil

ASKER

Thank you for your response, it was very insightful to me.
Glad to help.  Cheers!