Android native development kit cookbook
This book is written in a Cookbook style, beginning with recipes which focus on helping developers make their software/application available in Android.Android developers who want to learn Android NDK programming, or develop multimedia and games in Android NDK will benefit from this book.
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing
2013.
|
Edición: | First edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627725706719 |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Hello NDK; Introduction; Setting up an Android NDK development environment in Windows; Setting up an Android NDK development environment in Ubuntu Linux; Setting up an Android NDK development environment in Mac OS; Updating Android NDK; Writing a Hello NDK program; Chapter 2: Java Native Interface; Introduction; Loading native libraries and registering native methods; Passing parameters and receiving returns in primitive types; Manipulating strings in JNI
- Managing references in JNIManipulating classes in JNI; Manipulating objects in JNI; Manipulating arrays in JNI; Accessing Java static and instance fields in the native code; Calling static and instance methods from native code; Caching jfieldID, jmethodID, and referencing data to improve performance; Checking errors and handling exceptions in JNI; Integrating assembly code in JNI; Chapter 3: Build and Debug NDK Applications; Introduction; Building an Android NDK application at the command line; Building an Android NDK application in Eclipse
- Building an Android NDK application for different ABIsBuilding an Android NDK applications for different CPU features; Debugging an Android NDK application with logging messages; Debugging an Android NDK application with CheckJNI; Debugging an Android NDK application with NDK GDB; Debugging an Android NDK application with CGDB; Debugging an Android NDK application in Eclipse; Chapter 4: Android NDK OpenGL ES API; Introduction; Drawing 2D Graphics and applying transforms with OpenGL ES 1.x API; Drawing 3D graphics and lighting up the scene with the OpenGL ES 1.x API
- Mapping texture to 3D objects with the OpenGL ES 1.x APIDrawing 3D graphics with the OpenGL ES 2.0 API; Displaying graphics with EGL; Chapter 5: Android Native Application API; Introduction; Creating a native activity with the native_activity.h interface; Creating a native activity with the Android native app glue; Managing native windows at Android NDK; Detecting and handling input events at Android NDK; Accessing sensors at Android NDK; Managing assets at Android NDK; Chapter 6: Android NDK Multithreading; Introduction; Creating and terminating native threads at Android NDK
- Synchronizing native threads with mutex at Android NDKSynchronizing native threads with conditional variables at Android NDK; Synchronizing native threads with reader/writer locks at Android NDK; Synchronizing native threads with semaphore at Android NDK; Scheduling native threads at Android NDK; Managing data for native threads at Android NDK; Chapter 7: Other Android NDK API; Introduction; Programming with the jnigraphics library in Android NDK; Programming with the dynamic linker library in Android NDK; Programming with the zlib compression library in Android NDK
- Programming audio with the OpenSL ES audio library in Android NDK