没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
774页
Android Recipes A Problem-Solution Approach for Android 5.0(4th) 英文无水印原版pdf 第4版 pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
资源推荐
资源详情
资源评论
COMPANION eBOOK
US $49.99
Shelve in
Mobile Computing
User level:
Intermediate
www.apress.com
BOOKS FOR PROFESSIONALS BY PROFESSIONALS
®
A
ndroid Recipes, Fourth Edition offers more than 100 down-to-earth code recipes,
and guides you step-by-step through a wide range of useful topics using complete
and real-world working code examples. This book is updated to include the Android 5.0
SDK - including the new Android Wear and TV SDKs - as well as earlier releases.
Instead of abstract descriptions of complex concepts, in Android Recipes, you’ll find live
code examples. When you start a new project you can consider copying and pasting
the code and configuration files from this book and then modifying them for your own
customization needs.
Crammed with insightful instruction and helpful examples, this fourth edition of
Android Recipes is your guide to writing apps for one of today’s hottest mobile platforms.
It offers pragmatic advice that will help you get the job done quickly and well. This can
save you a great deal of work over creating a project from scratch!
•
Code for Android smartphones, tablets and now wearables and TV apps
•
Use external libraries to save time and effort
•
Boost app performance by using the Android NDK and RenderScript
•
Design apps for performance, responsiveness, and seamlessness
•
Send data between devices and other external hardware
•
Persist application data and share it between applications
•
Capture and play back various device media items
•
Communicate with web services
•
Get the most out of your user interface
Companion
eBook
Available
SOURCE CODE ONLINE
FOURTH
EDITION
Smith
Android
Recipes
Dave Smith
A Problem-Solution Approach
Recipes
Android
Android
FOURTH EDITION
Hundreds of problems and solutions of code recipes
using Android 5.0
9781484 204764
54999
ISBN 978-1-4842-0476-4
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.
iii
Contents at a Glance
About the Author ����������������������������������������������������������������������������������������������������xxi
About the Technical Reviewer ������������������������������������������������������������������������������xxiii
Acknowledgments �������������������������������������������������������������������������������������������������xxv
Introduction ���������������������������������������������������������������������������������������������������������xxvii
Chapter 1: Layouts and Views ■ ������������������������������������������������������������������������������� 1
Chapter 2: User Interaction Recipes ■ �������������������������������������������������������������������� 89
Chapter 3: Communications and Networking ■ ���������������������������������������������������� 199
Chapter 4: Interacting with Device Hardware and Media ■ ���������������������������������� 289
Chapter 5: Persisting Data ■ ��������������������������������������������������������������������������������� 391
Chapter 6: Interacting with the System ■ ������������������������������������������������������������� 471
Chapter 7: Graphics and Drawing ■ ���������������������������������������������������������������������� 613
Chapter 8: Working with Android NDK and RenderScript ■ ���������������������������������� 689
Index ��������������������������������������������������������������������������������������������������������������������� 737
xxvii
Introduction
Welcome to the fourth edition of Android Recipes!
If you are reading this book, you probably don’t need to be told of the immense opportunity
that mobile devices represent for software developers and users. In recent years, Android
has become one of the top mobile platforms for device users. This means that you, as a
developer, must know how to harness Android so you can stay connected to this market
and the potential that it offers. But any new platform brings with it uncertainty about best
practices and solutions to common needs and problems.
What we aim to do with Android Recipes is give you the tools to write applications for the
Android platform through direct examples targeted at the specific problems you are trying
to solve. This book is not a deep dive into the Android SDK, NDK, or any of the other tools.
We don’t weigh you down with all the details and theory behind the curtain. That’s not to
say that those details aren’t interesting or important. You should take the time to learn them,
as they may save you from making future mistakes. However, more often than not, they are
simply a distraction when you are just looking for a solution to an immediate problem.
This book is not meant to teach you Java programming or even the building blocks of an
Android application. You won’t find many basic recipes in this book (such as how to display
text with TextView, for instance), as we feel these are tasks easily remembered once learned.
Instead, we set out to address tasks that developers, once comfortable with Android, need
to do often but find too complex to accomplish with a few lines of code.
Treat Android Recipes as a reference to consult, a resource-filled cookbook that you can
always open to find the pragmatic advice you need to get the job done quickly and well.
xxviii
Introduction
What Will You Find in the Book?
We dive into using the Android SDK to solve real problems. You will learn tricks for effectively
creating a user interface that runs well across device boundaries. You will become a master
at incorporating the collection of hardware (radios, sensors, and cameras) that makes
mobile devices unique platforms. We’ll even discuss how to make the system work for you
by integrating with the services and applications provided by Google and various device
manufacturers.
Performance matters if you want your applications to succeed. Most of the time, this isn’t
a problem because the Android runtime engines get progressively better at compiling
bytecode into the device’s native code. However, you might need to leverage the Android
NDK to boost performance. Chapter 8 offers you an introduction to the NDK and integrating
native code into your application using Java Native Interface (JNI) bindings.
The NDK is a complex technology, which can also reduce your application’s portability.
Also, while good at increasing performance, the NDK doesn’t address multicore processing
very well for heavy workloads. Fortunately, Google has eliminated this tedium and simplified
the execute-on-multiple-cores task while achieving portability by introducing RenderScript.
Chapter 8 introduces you to RenderScript and shows you how to use its compute engine
(and automatically leverage CPU cores) to process images.
Keep a Level Eye on the Target
Throughout the book, you will see that we have marked most recipes with the minimum API
level that is required to support them. Most of the recipes in this book are marked API Level 1,
meaning that the code used can be run in applications targeting any version of Android
since 1.0. However, where necessary, we use APIs introduced in later versions. Pay close
attention to the API level marking of each recipe to ensure that you are not using code that
doesn’t match up with the version of Android your application is targeted to support.
剩余773页未读,继续阅读
资源评论
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 台达DOP系列触摸屏与DVP系列PLC通信电缆连接手册-20160122.pdf
- 计算机二级考试心得体会
- 织梦同步WAP插件(V1.4)
- linux之centos7打包与压缩命令详解
- (资源包名是松下不必介意实际是台达)台达PLC例程源码板式家具封边机
- (资源包名是松下不必介意实际是台达)台达PLC例程源码PLS交替输出(单按钮启停)
- (资源包名是松下不必介意实际是台达)台达PLC例程源码PLF指令(车库红绿灯控制)
- 织梦DedeCMS文章归档插件UTF-8和GBK版本
- (资源包名是松下不必介意实际是台达)台达PLC例程源码PLC与6台VFD-B的通讯
- doublescreen,MAXhub会议系统软件
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功