Skip to Main Content
Android NDK Beginner`s Guide - Second Edition
book

Android NDK Beginner`s Guide - Second Edition

by Sylvain Ratabouil
April 2015
Beginner to intermediate content levelBeginner to intermediate
494 pages
10h 26m
English
Packt Publishing
Content preview from Android NDK Beginner`s Guide - Second Edition

Time for action – debugging a native Android application

  1. Create file jni/Application.mk with the following content:
    APP_PLATFORM := android-14
    APP_ABI := armeabi armeabi-v7a x86

    Tip

    These are not the only ABIs provided by the NDK; more processor architectures such as MIPS or variants such as 64 bits or hard floats exist. The ones used here are the main ones you should be concerned with. They can easily be tested on an emulator.

  2. Open Project Properties, go to C/C++ Build, uncheck Use default build command and enter ndk-build NDK_DEBUG=1:
    Time for action – debugging a native Android application
  3. In jni/com_packtpub_store_Store.cpp, place a breakpoint inside the Java_com_packtpub_store_Store_getCount()method by ...
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

Pro Android C++ with the NDK

Pro Android C++ with the NDK

Onur Cinar
Learning Embedded Android N Programming

Learning Embedded Android N Programming

Ivan Morgillo, Stefano Viola

Publisher Resources

ISBN: 9781783989645Supplemental Content