tags:

views:

322

answers:

1
+7  Q: 

C/C++ in Android?

Is it possible to use C/C++ code in Android? And how easy is it?

+8  A: 

Its possible. Use the Native Development Kit (NDK). See here for more discussion and links.

How easy is it? I don't know, I've never tried!

Andy Johnson
It's pretty easy! All you need to do is create your classes in C++, then use JNI to launch your Native code. One think to keep in mind, though, is that there is not a full STL implementation in Android, so you can't use things like std::vectors or std::strings.
CaseyB
Isn't Android used on Arm and on i386 processors?
stesch
Supported on ARM, MIPS, Power Architecture, and x86.
Andy Johnson