Android NDK Beginner’s Guide

0
(0)

Android NDK Beginner’s Guide
 

  • Author:Sylvain Ratabouil
  • Length: 436 pages
  • Edition: 1
  • Publisher: Packt Publishing
  • Publication Date: 2012-01-26
  • ISBN-10: 1849691525
  • ISBN-13: 9781849691529
  • Sales Rank: #3108184 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Discover the native side of Android and inject the power of C/C++ in your applications

    • Create high performance applications with C/C++ and integrate with Java
    • Exploit advanced Android features such as graphics, sound, input and sensing
    • Port and reuse your own or third-party libraries from the prolific C/C++ ecosystem

    In Detail

    Android NDK is all about injecting high performance into your apps. Exploit the maximum power of these mobile devices using high-performance and portable code.

    This book will show you how to create C/C++ enabled applications and integrate them with Java. You will learn how to access native API and port libraries used in some of the most successful Android applications.

    Using this practical step-by-step tutorial, highlighted with comments and tricks, discover how to run C/C++ code embedded in a Java application or in a standalone application. You will create a real native application starting from project creation through to full implementation of native API and the porting of existing third-party libraries. You will discover OpenGL ES and OpenSL ES, which are becoming the new standard in mobility. You will also understand how to access keyboard and input peripherals and how to read accelerometer or orientation sensors. Finally, you will dive into more advanced topics such as debugging and ARM assembler instructions. By the end of the book, you should know the key elements to enable you to start exploiting the power and portability of native code.

    What you will learn from this book

    • Jump in the starting block and create your first Android native projec
    • Communicate with Java through Java Native Interfaces
    • Display 2D and 3D graphics with OpenGL ES
    • Play sound and music with OpenSL ES
    • Manage Android input and sensors
    • Debug applications and discover advanced ARM instructions
    • Port existing C/C++ code to Android
    • Combine graphics, sound, input, sensors and physics in your application

    Approach

    This beginner’s guide focuses on getting you through all the major learning points in a smooth, logical order. You’ll also see how to avoid some common pitfalls.

    Who this book is written for

    Are you an Android Java programmer who needs more performance? Are you a C/C++ developer who doesn’t want to bother with Java stuff and its out-of-control garbage collector? Do you want to create fast intensive multimedia applications or games? Answer yes to any of the above and this book is for you. With some general knowledge of C/C++ development, you will be able to dive head first into native Android development.

    Table of Contents

    Chapter 1: Setting Up your Environment
    Chapter 2: Creating, Compiling, and Deploying Native Projects
    Chapter 3: Interfacing Java and C/C++ with JNI
    Chapter 4: Calling Java Back from Native Code
    Chapter 5: Writing a Fully-native Application
    Chapter 6: Rendering Graphics with OpenGL ES
    Chapter 7: Playing Sound with OpenSL ES
    Chapter 8: Handling Input Devices and Sensors
    Chapter 9: Porting Existing Libraries to Android
    Chapter 10: Towards Professional Gaming
    Chapter 11: Debugging and Troubleshooting

    中文:

    书名:Android NDK Beginner’s Guide

    了解Android原生的一面,并在您的应用程序中注入C/C++的强大功能

    • 使用C/C++创建高性能应用程序并与Java集成
    • 利用高级Android功能,如图形、声音、输入和传感
    • 移植和重用您自己的库或来自多产的C/C++生态系统的第三方库

    详细地说

    Android NDK就是为你的应用注入高性能。使用高性能和可移植的代码充分利用这些移动设备的最大能力。

    本书将向您展示如何创建支持C/C++的应用程序并将其与Java集成。您将学习如何访问一些最成功的Android应用程序中使用的本机API和端口库。

    使用这个用注释和技巧突出显示的实用分步教程,了解如何运行嵌入到Java应用程序或独立应用程序中的C/C++代码。您将创建一个真正的本机应用程序,从项目创建到本机API的全面实现和现有第三方库的移植。您会发现OpenGL ES和OpenSL ES正在成为移动性的新标准。您还将了解如何访问键盘和输入外设,以及如何读取加速度计或方向传感器。最后,您将深入了解更高级的主题,如调试和ARM汇编器指令。到本书结束时,您应该知道使您能够开始利用本机代码的功能和可移植性的关键元素。

    你将从这本书中学到什么

    • 进入起点,创建您的第一个Android原生项目
    • 通过Java原生接口与Java通信
    • 用OpenGL ES显示二维和三维图形
    • Play sound and music with OpenSL ES
    • 管理Android输入和传感器
    • 调试应用程序并发现高级ARM指令
    • 将现有的C/C++代码移植到Android
    • 在您的应用程序中结合图形、声音、输入、传感器和物理

    Approach

    这本初学者指南的重点是帮助你顺利、有逻辑地完成所有主要的学习要点。您还将了解如何避免一些常见的陷阱。

    这本书是为谁写的

    您是需要更高性能的Android Java程序员吗?您是一名C/C++开发人员,不想为Java的东西及其失控的垃圾收集器而烦恼吗?您想要创建快速密集的多媒体应用程序或游戏吗?对上述任何一个问题的回答都是肯定的,这本书就是为你而写的。有了一些C/C++开发的一般知识,您将能够首先深入了解本地Android开发。

    目录表

    第1章:设置您的环境
    第2章:创建、编译和部署本地项目
    Chapter 3: Interfacing Java and C/C++ with JNI
    第4章:从本机代码回调Java
    第5章:编写完全本机的应用程序
    第6章:使用OpenGL ES渲染图形
    第7章:使用OpenSL ES播放声音
    第8章:处理输入设备和传感器
    第9章:将现有的库移植到Android
    第十章:迈向职业游戏
    第11章:调试和故障排除

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册