1

Android app development: C++ or Java

QuickWhitt7 11/19/15 7:03 am
273
11/19/2015 4:46 pm
Hello. I am planning on programming a few apps for Android, but I need to know which language is the better option: Java or C++? Battery, performance, and efficiency are my primary concerns.

Thanks.
Posted by
QuickWhitt7
Level 36 : Artisan Creeper Hugger
12

  Have something to say?

JoinSign in

3

deadrecon98
11/19/2015 8:16 am
Level 38 : Artisan Programmer
Ummm, it's android bro.... you use java....
Just so that you understand why you shouldn't use c++ for android is because you have to wrap the code and use JNI with it. So regardless of it being c++, you are still running a java application therefore many issues will probably occur. So just write it in the android standard of java.
1
Paril
11/19/2015 4:46 pm
He/Him • Level 89 : Elite Scapegoat Programmer
It's not a dumb question. Android can do C++ apps as well, as it is Linux-based and allows you to do that. The Java runtime is obviously higher level and might be easier for some people, but yes, apps can be developed in C++ too.
1
QuickWhitt7
11/19/2015 4:40 pm
He/Him • Level 36 : Artisan Creeper Hugger
Sorry if that was a dumb question, bro. I just wanted to know because Pocket Edition was written in C++ (according to the official Minecraft Wiki). Thanks!
1

Welcome