没有合适的资源?快使用搜索试试~ 我知道了~
the Busy Coder's Guide to Android Development.pdf
2星 需积分: 10 8 下载量 89 浏览量
2013-09-17
12:33:26
上传
评论
收藏 8.06MB PDF 举报
温馨提示
试读
436页
the Busy Coder's Guide to Android Development
资源推荐
资源详情
资源评论
This document is licensed for Cheng Po-wen's exclusive use by CommonsWare, LLC
This document is licensed for Cheng Po-wen's exclusive use by CommonsWare, LLC
The Busy Coder's Guide to Android
Development
by Mark L. Murphy
This document is licensed for Cheng Po-wen's exclusive use by CommonsWare, LLC
The Busy Coder's Guide to Android Development
by Mark L. Murphy
Copyright © 2008 CommonsWare, LLC. All Rights Reserved.
Printed in the United States of America.
CommonsWare books may be purchased in printed (bulk) or digital form for educational or
business use. For more information, contact direct@commonsware.com.
Printing History:
Aug 2008: Version 1.1 ISBN: 978-0-9816780-0-9
The CommonsWare name and logo, “Busy Coder's Guide”, and related trade dress are
trademarks of CommonsWare, LLC.
All other trademarks referenced in this book are trademarks of their respective firms.
The publisher and author(s) assume no responsibility for errors or omissions or for damages
resulting from the use of the information contained herein.
This document is licensed for Cheng Po-wen's exclusive use by CommonsWare, LLC
Table of Contents
Welcome to the Warescription!..................................................................................xiii
Preface..........................................................................................................................xv
Welcome to the Book!...........................................................................................................xv
Prerequisites..........................................................................................................................xv
Warescription.......................................................................................................................xvi
Book Bug Bounty.................................................................................................................xvii
Source Code License..........................................................................................................xviii
Creative Commons and the Four-to-Free (42F) Guarantee............................................xviii
The Big Picture................................................................................................................1
What Androids Are Made Of.................................................................................................3
Activities...........................................................................................................................3
Content Providers...........................................................................................................4
Intents..............................................................................................................................4
Services.............................................................................................................................4
Stuff At Your Disposal.............................................................................................................5
Storage..............................................................................................................................5
Network............................................................................................................................5
Multimedia.......................................................................................................................5
GPS...................................................................................................................................5
Phone Services.................................................................................................................6
Project Structure............................................................................................................7
Root Contents..........................................................................................................................7
The Sweat Off Your Brow.......................................................................................................8
iii
This document is licensed for Cheng Po-wen's exclusive use by CommonsWare, LLC
And Now, The Rest of the Story.............................................................................................8
What You Get Out Of It.........................................................................................................9
Inside the Manifest........................................................................................................11
In The Beginning, There Was the Root, And It Was Good.................................................11
Permissions, Instrumentations, and Applications (Oh, My!).............................................12
Your Application Does Something, Right?..........................................................................13
Creating a Skeleton Application...................................................................................17
Begin at the Beginning...........................................................................................................17
The Activity............................................................................................................................18
Dissecting the Activity...........................................................................................................19
Building and Running the Activity.......................................................................................21
Using XML-Based Layouts............................................................................................23
What Is an XML-Based Layout?...........................................................................................23
Why Use XML-Based Layouts?............................................................................................24
OK, So What Does It Look Like?..........................................................................................25
What's With the @ Signs?....................................................................................................26
And We Attach These to the Java...How?...........................................................................26
The Rest of the Story.............................................................................................................27
Employing Basic Widgets.............................................................................................29
Assigning Labels....................................................................................................................29
Button, Button, Who's Got the Button?..............................................................................30
Fleeting Images......................................................................................................................31
Fields of Green. Or Other Colors.........................................................................................32
Just Another Box to Check....................................................................................................35
Turn the Radio Up.................................................................................................................38
It's Quite a View....................................................................................................................40
Useful Properties...........................................................................................................40
Useful Methods.............................................................................................................40
Working with Containers.............................................................................................43
Thinking Linearly..................................................................................................................44
Concepts and Properties...............................................................................................44
Example..........................................................................................................................47
All Things Are Relative.........................................................................................................52
iv
剩余435页未读,继续阅读
资源评论
- voidloong2013-10-13版本太旧啦.还是1.1, 最新的已经是5.1了.
夢入江南煙雨路
- 粉丝: 2
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功