Pro Android C++ with the NDK
Android is one of the major players in the mobile phone market. Android is a mobile platform that is built on the top of Linux operating system. The native-code support on Android offers endless opportunities to application developers, not limited the functionality that is provided by Android framew...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
[Berkeley, Calif.] : New York :
Apress ; Distributed to the book trade worldwide by Springer Science+Business Media
c2012.
|
Edición: | 1st ed. 2012. |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629615806719 |
Tabla de Contenidos:
- Title Page; Copyright Page; Dedication Page; Contents at a Glance; Table of Contents; About the Author; About the Technical Reviewer; Preface; What You Will Learn; Downloading the Code; Contacting the Author; Chapter 1 Getting Started with C++ on Android; Microsoft Windows; Downloading and Installing the Java Development Kit on Windows; Downloading and Installing the Apache ANT on Windows; Downloading and Installing the Android SDK on Windows; Downloading and Installing the Cygwin on Windows; Downloading and Installing the Android NDK on Windows
- Downloading and Installing the Eclipse on WindowsApple Mac OS X; Installing Xcode on Mac; Validating the Java Development Kit on Mac; Validating the Apache ANT on Mac; Validating the GNU Make; Downloading and Installing the Android SDK on Mac; Downloading and Installing the Android NDK on Mac; Downloading and Installing the Eclipse on Mac; Ubuntu Linux; Checking the GNU C Library Version; Enabling the 32-Bit Support on 64-Bit Systems; Downloading and Installing the Java Development Kit on Linux; Downloading and Installing the Apache ANT on Linux
- Downloading and Installing the GNU Make on LinuxDownloading and Installing the Android SDK on Linux; Downloading and Installing the Android NDK on Linux; Downloading and Installing the Eclipse on Linux; Downloading and Installing the ADT; Installing the Android Platform Packages; Configuring the Emulator; Summary; Chapter 2 Exploring the Android NDK; Components Provided with the Android NDK; Structure of the Android NDK; Starting with an Example; Specifying the Android NDK Location; Importing the Sample Project; Adding Native Support to Project; Running the Project
- Building from the Command LineExamining the Structure of an Android NDK Project; Build System; Android.mk; Building a Shared Library; Building Multiple Shared Libraries; Building Static Libraries; Sharing Common Modules using Shared Libraries; Sharing Modules between Multiple NDK Projects; Using Prebuilt Libraries; Building Standalone Executable; Other Build System Variables; Other Build System Function Macros; Defining New Variables; Conditional Operations; Application.mk; Using the NDK-Build Script; Troubleshooting Build System Problems; Summary
- Chapter 3 Communicating with Native Code using JNIWhat is JNI?; Starting with an Example; Declaration of Native Methods; Loading the Shared Libraries; Implementing the Native Methods; C/C++ Header Generator: javah; Running from Command Line; Running from Eclipse IDE; Method Declarations; JNIEnv Interface Pointer; Instance vs. Static Methods; Data Types; Primitive Types; Reference Types; Operations on Reference Types; String Operations; New String; Converting a Java String to C String; Releasing Strings; Array Operations; New Array; Accessing the Array Elements; Operating on a Copy
- Operating on Direct Pointer