2.11 Setting up the Android tools for use with DS-5™
This tutorial describes the steps required for Android development using DS-5, the Android Native Development Kit (NDK), Eclipse with C/C++ Development Tooling (CDT), and the Android Software Development Kit (SDK) Platform 2.2.
It does not describe how to install any of the Android tools. See the Android Developers website for more information.
NoteUse of the Android development kits are subject to their own terms and conditions.
Before you can debug an Android package containing native C/C++ code you must:
Download and install the Android SDK tools and required platforms. This enables you to build Java applications together with any native C/C++ code into an Android package with a .apk file extension. This example uses the Android SDK Platform 2.2.
Download and install the Android NDK. This is a companion tool to the Android SDK that enables you to build performance-critical parts of your applications in native code such as C and C++ languages.
On Windows, you must also download and install
cygwin, including the
make package so that you can run the scripts inside the Android NDK.
Update the version of
gdbserver in the Android NDK ...\toolchains\...\prebuilt directory with the required version of
gdbserver provided by DS-5. You can locate this file by selecting from the main menu. Ensure that you rename it to
Add the...\android-sdk\platform-tools folder to your PATH environment variable. If it is already configured then you can skip this step.
Set up the Eclipse plug-in for Android:
Install the DS-5 Eclipse plug-ins. If you have a full DS-5 installation then you can skip this step.
Install the Android Development Tools (ADT) Eclipse plug-ins.
Select Browse... to set the location of the Android SDK.
and click on
Open the Android SDK and AVD Manager dialog box by selecting
Expand the Available packages group and add SDK platforms as required. For example, Android SDK Platform Android 2.2.