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

elepil
elepil used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2015

Commented:
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

Author

Commented:
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?
Top Expert 2015
Commented:
It's from my understanding that C++ support for Android programming is not as mature as JAVA and it's only recommended to us C++ when you're writing a cpu intensive app.

"The problem is just that if you use the most recent NDK, you'll not be able to deploy and a lot of not-recent Android versions."

http://programmers.stackexchange.com/questions/127735/android-development-using-c-and-c

Author

Commented:
Thank you for your response, it was very insightful to me.
Top Expert 2015

Commented:
Glad to help.  Cheers!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial