Pro Android C++ with the NDK

0
(0)

Pro Android C++ with the NDK
 

  • Author:Onur Cinar
  • Length: 416 pages
  • Edition: 1
  • Publisher: Apress
  • Publication Date: 2012-12-05
  • ISBN-10: 1430248270
  • ISBN-13: 9781430248279
  • Sales Rank: #2703285 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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 framework. Pro Android C++ with the NDK is an advanced tutorial and professional reference for today’s more sophisticated app developers now porting, developing or employing C++ and other native code to integrate into the Android platform to run sophisticated native apps and better performing apps in general. Using a game app case study, this book explores tools for troubleshooting, debugging, analyzing memory issues, unit testing, unit test code coverage, performance measurement, on native applications, as well as integrating  the Android NDK toolchain into existing Autoconf, Makefile, CMake, or JAM based build systems. Pro Android C++ with the NDK also covers the following:

    • The Android platform, and getting up to speed with the Android NDK, and exploring the APIs that are provided in native space.
    • An overview of Java Native Interface (JNI), and auto-generating JNI code through Simplified Wrapper and Interface Generator (SWIG).
    • An introduction to Bionic API, native networking. native multithreading, and the C++ Standard Template Library (STL) support.
    • Native graphics and sound using JNI Graphics, OpenGL ES, and OpenSL ES.
    • Debugging and troubleshooting native applications using Logging, GNU Debugger (GDB), Eclipse Debugger, Valgrind, strace, and other tools.
    • Profiling native code using GProf to identify performance bottlenecks, and NEON/SIMD optimization from an advanced perspective, with tips and recommendations.

    What you’ll learn

    • What is the Android platform, and getting up to speed with the Android NDK.
    • Using the Eclipse IDE to streamline developing native applications
    • How to use Java Native Interface (JNI) to connect native code to Java world.
    • Auto-generate JNI code using Simplified Wrapper and Interface Generator (SWIG).
    • Introduction to Bionic API
    • Networking through POSIX sockets
    • Developing multithreaded applications using POSIX Threads, and Java Threads.
    • Debug through Logging, GNU Debugger (GDB), and Eclipse Debugger
    • Analyze memory issues through Valgrind
    • C++ Support and Standard Template Library STL
    • Native Graphics through JNI Graphics and OpenGL ES
    • Native Sound through OpenSL ES
    • Profiling the native code using GProf to identify performance bottlenecks
    • Optimize code using SIMD/NEON

    Who this book is for

    This book is for software professionals who are interested in leveraging the Android NDK to port their existing native-code app, such as C++, to the Android platform, as well as existing Android developers who are interested in improving their apps overall performance by utilizing native-code.

    Table of Contents

    1. Getting Started with C++ on Android
    2. Exploring the Android NDK
    3. Communicating with Native Code using JNI
    4. Auto-Generate JNI Code Using SWIG
    5. Logging, Debugging, and Troubleshooting
    6. Bionic API Primer
    7. Native Threads
    8. POSIX Socket API: Connection Oriented Communication
    9. POSIX Socket API: Connetionless Communication
    10. POSIX Socket API: Local Communication
    11. C++ Support
    12. Native Graphics API
    13. Sound Native API
    14. Profiling and NEON Optimization

    中文:

    书名:带有NDK的Pro Android C++

    Android是手机市场的主要参与者之一。Android是一个构建在Linux操作系统之上的移动平台。Android上的原生代码支持为应用程序开发人员提供了无限的机会,而不局限于Android框架提供的功能。 Pro Android C++ with the NDK这是一本高级教程和专业参考,适用于当今更复杂的应用程序开发人员,他们正在移植、开发或使用C++和其他本机代码,以便将其集成到Android平台中,以运行复杂的本机应用程序和性能更好的应用程序。使用游戏应用程序案例研究,本书探索了用于本机应用程序上的故障排除、调试、分析内存问题、单元测试、单元测试代码覆盖率、性能测量以及将Android NDK工具链集成到现有的基于Autoconf、Makefile、CMake或JAM的构建系统的工具。 Pro Android C++ with the NDK它还包括以下内容:

    • Android平台,熟悉Android NDK,并探索在原生空间中提供的API。
    • 概述Java原生接口(JNI),并通过简化的包装器和接口生成器(SWIG)自动生成JNI代码。
    • 仿生API简介,原生网络。原生多线程、代码和C++标准模板库(STL)支持。
    • 使用JNI Graphics、OpenGL ES和OpenSL ES的原生图形和声音。
    • 使用日志记录、GNU调试器(GDB)、Eclipse调试器、Valgrind、strace和其他工具调试和故障排除本机应用程序。
    • 使用GProf分析本机代码以识别性能瓶颈,并从高级角度进行NEON/SIMD优化,并提供提示和建议。

    What you’ll learn

    • 什么是Android平台,以及了解Android NDK的最新进展。
    • Using the Eclipse IDE to streamline developing native applications
    • 如何使用Java原生接口(JNI)将原生代码连接到Java世界。
    • 使用简化的包装器和界面生成器(SWIG)自动生成JNI代码。
    • Introduction to Bionic API
    • 通过POSIX插座实现联网
    • 使用POSIX线程和Java线程开发多线程应用程序。
    • 通过日志记录、GNU调试器(GDB)和Eclipse调试器进行调试
    • 通过Valgrind分析内存问题
    • C++支持和标准模板库STL
    • 通过JNI Graphics和OpenGL ES实现原生图形
    • 通过OpenSL ES实现原生声音
    • 使用GProf分析本机代码以确定性能瓶颈
    • 使用SIMD/NEON优化代码

    Who this book is for

    本书面向有兴趣利用Android NDK将他们现有的本机代码应用程序(如C++)移植到Android平台的软件专业人员,以及对通过利用本机代码提高应用程序整体性能感兴趣的现有Android开发人员。

    Table of Contents

    1. Android上的C++入门
    2. Exploring the Android NDK
    3. 使用JNI与本机代码通信
    4. Auto-Generate JNI Code Using SWIG
    5. 记录、调试和故障排除
    6. Bionic API Primer
    7. 本地线程
    8. POSIX套接字API:面向连接的通信
    9. POSIX套接字API:无连接通信
    10. POSIX套接字API:本地通信
    11. C++支持
    12. Native Graphics API
    13. 声音纯正的原生仓鼠API
    14. 剖析与霓虹灯优化
  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

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

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

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册