+ 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 ?
9 Respostas
+ 7
Yea you can, check out the NDK, you can use C or C++ with it
https://developer.android.com/ndk/index.html
+ 7
You need a minimal Java implementation, which calls C/C++ functions through the Java Native Interface.
+ 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.
+ 7
edit, still not sure about this. Let me read the page again. lol
+ 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.
+ 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
+ 2
Gotcha. Is there any way to build a whole app in C++ that can be converted to an APK?
+ 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++
0
awesome! thanks man