2.9 Using DS-5 to debug Android applications

For application debugging on Android targets, use the options available under Android Application Debug in the Connections tab of the Debug Configurations dialog box.

Before creating a DS-5 debug configuration and attempting connection to your Android target, you need to:
  • 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.
  • 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.
  • Add the ...\android-sdk\platform-tools folder to your PATH environment variable.
  • Ensure that your application is built correctly.
  • Ensure that your target is up and running.
    • If you are using a hardware target, ensure that your host workstation is connected to the target.
    • If you are using an Android Virtual Device (AVD), your device emulator should be configured with the appropriate API levels and CPU settings. It must also be up and running for DS-5 to connect to it.

Note

Android development tools are subject to their own terms and conditions.
The connection options are:
  • Attach to a running Android application.
    This option requires you to load your application on your target before attempting a connection between DS-5 and your target.
  • Download and debug an Android application.
    When a connection is established using this option, DS-5 connects to your target, downloads your application on to the target system, and starts the debug session.
Non-ConfidentialPDF file icon PDF versionARM DUI0446W
Copyright © 2010-2015 ARM. All rights reserved.