Create file
jni/Application.mk
with the following content:APP_PLATFORM := android-14 APP_ABI := armeabi armeabi-v7a x86
Open Project Properties, go to C/C++ Build, uncheck Use default build command and enter
ndk-build NDK_DEBUG=1
:In
jni/com_packtpub_store_Store.cpp
, place a breakpoint inside theJava_com_packtpub_store_Store_getCount()
method by double-clicking on the Eclipse editor gutter.Select the
Store
project in the Package Explorer or Project Explorer view and go to Debug As | Android Native Application. The application starts, but you will probably find that nothing happens. Indeed, the breakpoint is likely to be reached before the GDB Debugger could attach to the application process...
Android NDK: Beginner's Guide
By :
Android NDK: Beginner's Guide
By:
Overview of this book
Table of Contents (18 chapters)
Android NDK Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Setting Up Your Environment
Starting a Native Android Project
Interfacing Java and C/C++ with JNI
Calling Java Back from Native Code
Writing a Fully Native Application
Rendering Graphics with OpenGL ES
Playing Sound with OpenSL ES
Handling Input Devices and Sensors
Porting Existing Libraries to Android
Intensive Computing with RenderScript
Afterword
Index
Customer Reviews