Native Android Application Development
From within Eclipse you can develop Android applications that include native code. Once you have installed
the necessary components and properly configured your development environment, for Android projects that have been
enabled for native support your C/C++ code is compiled into a shared library that is included when the Java portions
of your project are built. The Sequoyah Android feature provides other native application support: for instance, you
can generate C++ classes from native method declarations in your Java source files.
- Configuring your development environment for native development
After installing the Android NDK and a few other needed components, Eclipse can be configured to let you develop Android applications that include native (C/C++) code.
- Adding native support to an Android project
Android projects that have native support build the native components along with those rest of the project. At build time the Sequoyah Android feature compiles the native (C/C++) code into a shared library and then includes that shared library in the project APK.
- Generating native classes
The Sequoyah Android feature lets you generate C++ classes from native method declarations in your Java source files. This allows you to focus on the native function implementations, rather than the mechanics of parameter passing between Java and native C/C++ code.