Developing Android Apps with C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Developing Android Apps with C++

I have basic knowledge of C++. I want to develop android software. Is there any way to develop android apps through C++ programming ?

22nd Jun 2017, 2:32 PM
Mohit Nayak
Mohit Nayak - avatar
9 Answers
+ 7
Yea you can, check out the NDK, you can use C or C++ with it https://developer.android.com/ndk/index.html
22nd Jun 2017, 3:44 PM
Karl T.
Karl T. - avatar
+ 7
You need a minimal Java implementation, which calls C/C++ functions through the Java Native Interface.
22nd Jun 2017, 4:03 PM
Karl T.
Karl T. - avatar
+ 7
Good question. I still have to find that out but I am sure there is a way to write some form of wrapper lib that converts C++ into Java code.
22nd Jun 2017, 4:08 PM
Karl T.
Karl T. - avatar
+ 7
edit, still not sure about this. Let me read the page again. lol
22nd Jun 2017, 4:10 PM
Karl T.
Karl T. - avatar
+ 6
https://msdn.microsoft.com/en-us/library/dn771552.aspx says you can make Android apps with a C++ native activity application. Im going to test that pretty soon because Ive been looking for an alternative to Java too.
22nd Jun 2017, 4:22 PM
Karl T.
Karl T. - avatar
+ 2
I am working on the exact same thing. I'm still learning the language but plan on developing a 2d mmo rpg and have a small team together to do just that. any answers would help me as well
22nd Jun 2017, 3:01 PM
David Schmidt
David Schmidt - avatar
+ 2
Gotcha. Is there any way to build a whole app in C++ that can be converted to an APK?
22nd Jun 2017, 4:05 PM
David Schmidt
David Schmidt - avatar
+ 1
Can you write a total stand-alone program with this 'NDK'? From a glance it looks like it's designed to be used only to implement sections of code in C++
22nd Jun 2017, 4:00 PM
David Schmidt
David Schmidt - avatar
0
awesome! thanks man
23rd Jun 2017, 3:10 PM
David Schmidt
David Schmidt - avatar