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.
AndroidC++Java

Avatar of undefined
Last Comment
Wayne88

8/22/2022 - Mon
Wayne88

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
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
Wayne88

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
elepil

ASKER
Thank you for your response, it was very insightful to me.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Wayne88

Glad to help.  Cheers!