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
2010-04-14 15:27:00
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
2010-04-14 18:20:37
Isn't Android used on Arm and on i386 processors?
stesch
2010-04-14 20:47:31
Supported on ARM, MIPS, Power Architecture, and x86.
Andy Johnson
2010-04-15 08:46:29