Skip to Content
Android Native Development Kit Cookbook
book

Android Native Development Kit Cookbook

by Liu Feipeng
March 2013
Intermediate to advanced
346 pages
8h 4m
English
Packt Publishing
Content preview from Android Native Development Kit Cookbook

Debugging an Android NDK application with NDK GDB

Android NDK introduces a shell script named ndk-gdb to help one to launch a debugging session to debug the native code.

Getting ready

The project must meet the following requirements in order to debug it with ndk-gdb:

  • The application is built with the ndk-build command.
  • AndroidManifest.xml has the android:debuggable attribute of the <application> element set to true. This indicates that the application is debuggable even when it is running on a device in the user mode.
  • The application should be running on Android 2.2 or higher.

Please read the Building Android NDK Application at Eclipse recipe before going through this one.

How to do it...

The following steps create a sample Android project and debug ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Android 9 Development Cookbook - Third Edition

Android 9 Development Cookbook - Third Edition

Rick Boyer
Android High Performance Programming

Android High Performance Programming

Enrique López Mañas, Diego Grancini
Learning Embedded Android N Programming

Learning Embedded Android N Programming

Ivan Morgillo, Stefano Viola
Learning Android, 2nd Edition

Learning Android, 2nd Edition

Marko Gargenta, Masumi Nakamura

Publisher Resources

ISBN: 9781849691505Other