Android C++ Development
Members - Reputation: 122
Posted 19 August 2011 - 09:33 PM
I have some C++ experince and I would like to use it to develop for android using the NDK.
Is it possible to develop using only or mostly C++ without the need to learn Java?
If it does , is there more info I can get on this subject?
Members - Reputation: 1831
Posted 20 August 2011 - 12:45 AM
In the worst case, if there is no API to do something directly from the C++ side, you can fall-back and write the missing functionality using Java, and then interop with those functions from the C++ side, so you are not blocked completely from accessing any API in the system.
For C++ side development, they have stlport to provide stl support, and I think rtti also came in recently. See android-ndk\docs\CPLUSPLUS-SUPPORT.html for more information on the C++ features support.
The NDK uses its own build script system on top of the gcc toolchain. A good step to start is to try to get the NDK samples to build and run on your device. native-activity and native-plasma are ones which do not contain any java code. Go through the different build script files and try to figure out what commands you need to run to build and start the applications on your device (documented at the Android NDK page).
I am using vs-android for development, which does have some oddities, but all-in-all works very nice, and makes the workflow a lot easier.
Members - Reputation: 207
Posted 20 August 2011 - 07:29 AM
when it comes to games, we talk about s.th. different.. than u will probably need the ndk .. . especially when u are in the need for speed. honeycomb supports native application which allows you to write android apps completely without one line of java.. tutorials about that + ogles are on the android dev page.
below honeycomb u need a bit of java to call ur c functions..
I open sourced my C++/iOS OpenGL 2D RPG engine :-)
See my blog: (Tutorials and GameDev)