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.

Note

Use 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:

Procedure

  1. 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.
  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.

    Note

    On Windows, you must also download and install cygwin, including the make package so that you can run the scripts inside the Android NDK.
  3. 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 Help > ARM Extras... from the main menu. Ensure that you rename it to gdbserver.
  4. Add the...\android-sdk\platform-tools folder to your PATH environment variable. If it is already configured then you can skip this step.
  5. Set up the Eclipse plug-in for Android:
    1. Launch Eclipse.
    2. Install the DS-5 Eclipse plug-ins. If you have a full DS-5 installation then you can skip this step.
    3. Install the Android Development Tools (ADT) Eclipse plug-ins.
    4. Select Window > Preferences > Android and click on Browse... to set the location of the Android SDK.
    5. Open the Android SDK and AVD Manager dialog box by selecting Window > Android SDK and AVD Manager.
    6. Expand the Available packages group and add SDK platforms as required. For example, Android SDK Platform Android 2.2.
Related tasks
2.12 Loading the hello-neon application on to an Android target
2.13 Connecting to an application that is already running on an Android target
Related information
DS-5 Knowledge Articles
Eclipse
Cygwin
Android Developers
Non-Confidential - BetaPDF file icon PDF versionARM DUI0478U
Copyright © 2010-2015 ARM. All rights reserved.