没有合适的资源?快使用搜索试试~ 我知道了~
Apress.Pro.Android.CPP.with.the.NDK
需积分: 10 6 下载量 42 浏览量
2014-07-05
15:42:07
上传
评论
收藏 6.64MB PDF 举报
温馨提示
试读
404页
Pro Android CPP with NDK - Native Android programming using NDK and JNI
资源推荐
资源详情
资源评论
COMPANION eBOOK
Shelve in
Mobile Computing
User level:
Intermediate-Advanced
www.apress.com
BOOKS FOR PROFESSIONALS BY PROFESSIONALS
®
B
uild better apps using Pro Android C++ with the NDK. Whether you’re a soft-
ware professional interested in porting your existing native-code app to
Android or already developing on the platform, this book shows you how to
build sophisticated native apps with increased performance.
Pro Android C++ with the NDK offers you an overview of Java Native Interface
(JNI), Bionic API, POSIX threads and sockets, C++ support, native graphics and
sound API, and NEON/SIMD optimization. With the help of a game app case
study, you’ll learn how to:
•
Connect native code to the Java world using JNI
•
Auto-generate JNI code using SWIG
•
Multithread through POSIX threads
•
Network through POSIX sockets
•
Debug through logging, GDB, and the Eclipse Debugger
•
Analyze memory through Valgrind
•
Measure app performance through GProf
•
Optimize code through NEON/SIMD
•
Use the Eclipse IDE to devolope native code
This advanced tutorial and professional reference gives you the knowledge and
skills you need to port, develop, and employ C++ and other native code on the
Android platform to run more graphically intense apps, more sophisticated
native apps, and better performing apps in general.
Pro
Android C++
with the NDK
Onur Cinar
Building graphic-rich and better performing
native applications
Companion
eBook
Available
Cinar
Pro
Android C++ with the NDK
SOURCE CODE ONLINE
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
Download from Wow! eBook <www.wowebook.com>
v
Contents at a Glance
About the Author ��������������������������������������������������������������������������������������������������������������� xix
About the Technical Reviewer ������������������������������������������������������������������������������������������� xxi
Preface ���������������������������������������������������������������������������������������������������������������������������� xxiii
Chapter 1: Getting Started with C++ on Android ■ ���������������������������������������������������������������1
Chapter 2: Exploring the Android NDK ■ �����������������������������������������������������������������������������41
Chapter 3: Communicating with Native Code using JNI ■ ��������������������������������������������������67
Chapter 4: Auto-Generate JNI Code Using SWIG ■ ��������������������������������������������������������������95
Chapter 5: Logging, Debugging, and Troubleshooting ■ ���������������������������������������������������127
Chapter 6: Bionic API Primer ■ �����������������������������������������������������������������������������������������155
Chapter 7: Native Threads ■ ���������������������������������������������������������������������������������������������179
Chapter 8: POSIX Socket API: Connection-Oriented Communication ■ ����������������������������209
Chapter 9: POSIX Socket API: Connectionless Communication ■ �������������������������������������247
Chapter 10: POSIX Socket API: Local Communication ■ ���������������������������������������������������259
Chapter 11: C++ Support ■ �����������������������������������������������������������������������������������������������275
vi Contents at a Glance
Chapter 12: Native Graphics API ■ �����������������������������������������������������������������������������������285
Chapter 13: Native Sound API ■ ���������������������������������������������������������������������������������������335
Chapter 14: Profiling and NEON Optimization ■ ���������������������������������������������������������������363
Index ���������������������������������������������������������������������������������������������������������������������������������381
1
Chapter 1
Getting Started with C++
on Android
Needless to say, exploring and practicing are the best methods for learning. Having a fully functional
development environment ready at the very beginning of this book will enable you to explore and
experiment with the material while working through the chapters. The Android C++ development
environment is mainly formed by the following components:
Android Software Development Kit (SDK)
Android Native Development Kit (NDK)
Android Development Tools (ADT) Plug-In for Eclipse
Java Development Kit (JDK)
Apache ANT Build System
GNU Make Build System
Eclipse IDE
This chapter will provide step-by-step instructions for setting up the proper Android C++ development
environment. Android development tools are provided for the major operating systems:
Microsoft Windows
Apple Mac OS X
Linux
Since the requirements and the installation procedure vary depending on the operating system,
the following sections will walk you through the steps for setting up the Android C++ development
environment based on the operating system. You can skip over the ones that don’t apply to you.
剩余403页未读,继续阅读
资源评论
kaja85
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功