tags:

views:

527

answers:

4

Can I do Android Programming in C++ ,C ? If ( answer == "yes" ) { then please tell how ? and whats the procedure for set-up ? ( i donot know obj-c ,java ) but well versed in C,C++ ,FLASH AS3 SDK released by google

please do not tell about NVDIA SDK its not fully developed :) }

+5  A: 

You could only use Android NDK to develop performance-critical portions of your apps in native code. See Android NDK.

Anyway i don't think it is the right way to develop an entire application.

hara
+8  A: 

You can program in C/C++ using the Android NDK. You'll have to wrap your c++ codebase in a static library and load that through a Java wrapper & JNI.

The standard NDK does not support RTTI and a lot of the functionality of standard c++ is also not available such as std::string, etc. To solve this you can recompile the NDK. Dmitry Moskalchuk supplies a modified version of the NDK that supports this at http://www.crystax.net/android/ndk-r3.php. This modified version works on all Android phones that run on an ARM processor.

Depending on the kind of application you should decide to use Java or C/C++. I'd use C/C++ for anything that requires above average computational power and games -- Java for the rest.

Just pick one language and write the majority of your application in that language; JNI calls can decrease your performance by a lot. Java isn't that hard tho -- if you know how to program in C/C++. The advantage of Java is that the application can run on any device running Android, where as NDK applications depend on the architecture it was compiled for.

Chaoz
+1  A: 

Java is very similar to C++, I don't think you will have any problems picking it up... going from C++ to Java is incredibly easy; going from Java to C++ is a little more difficult, though not terrible. Java for C++ Programmers does a pretty good job at explaining the differences. I suggest you pick up Java, as it is an incredibly useful skill to have, regardless of whether you develop for the Android, and while it is technically possible to develop for Android using the Native Development Kit (NDK), it is not the preferred approach.

Michael Aaron Safyan
A: 

HI All , here is the Perfect answer for this ,

There are more than one library for working in C++ in Andriod programming 1) C++ - qt ( a nokia product but also available as LGPL ) 2) C++ - Wxwidget ( Available as GPL )

Extjs Commander