Learning Android中文版

Learning Android中文版

(美) 加尔根塔 (Gargenta,M.) , (日) 中村真澄, 著

出版社:电子工业出版社

年代:2014

定价:79.0

书籍简介:

本书是一本介绍Android 开发的入门图书,它循序渐进地介绍了如何利用Android 基本构件来创建用户界面、存储数据和执行连接网络等操作。本书以亲手实现一个类Twitter的应用程序为主线,通过不断为其添加功能展开讲解。而这一学习过程积累出的代码模式库,可以运用于实际Android 应用程序开发。

书籍目录:

前言 .............................................................................xv第1 章 Android 概述 ..................................................... 11.1 Android 基本特点 ............................................................................................1全面 .................................................................................................................1开源平台 .........................................................................................................2专为移动设备设计 ..........................................................................................21.2 历史 .................................................................................................................3谷歌的动机 .....................................................................................................3Android 的兼容性 ............................................................................................4开放手机联盟 ..................................................................................................41.3 Android 的版本 ...............................................................................................51.4 Android 的风格 ...............................................................................................7Android 开源项目 ............................................................................................7制造商的加载项 ..............................................................................................71.5 总结 .................................................................................................................8第2 章 Java 综述 .......................................................... 92.1 注释 ...............................................................................................................122.2 数据类型:基本数据类型和对象 ..................................................................132.3 修饰符 ...........................................................................................................142.4 数组 ...............................................................................................................152.5 运算符 ...........................................................................................................162.6 控制流语句 ...................................................................................................162.7 错误/ 异常处理 .............................................................................................192.8 复杂的示例 ...................................................................................................222.9 接口和继承 ...................................................................................................262.10 集合 .............................................................................................................272.11 泛型 .............................................................................................................282.12 线程 .............................................................................................................282.13 总结 .............................................................................................................29第3 章 Android 套件 .................................................... 313.1 套件概述 .......................................................................................................313.2 Linux.............................................................................................................31Android 不等于Linux...................................................................................333.3 本地层 ...........................................................................................................33HAL...............................................................................................................34本地库 ...........................................................................................................34本地守护进程 ................................................................................................35本地工具 .......................................................................................................363.4 Dalvik............................................................................................................36Android 和Java.............................................................................................373.5 应用程序框架 ................................................................................................393.6 应用程序 .......................................................................................................40Android 应用程序包(APK) .........................................................................40应用程序签名 ................................................................................................41应用程序分发 ................................................................................................413.7 总结 ...............................................................................................................42第4 章 安装和开始使用Android 工具 ........................... 434.1 安装Java 开发工具包 ...................................................................................434.2 安装Android SDK........................................................................................45为工具设置PATH 环境变量 ..........................................................................45安装Eclipse ..................................................................................................46Eclipse 工作区 ...............................................................................................46设置Android 开发工具 .................................................................................464.3 Hello World!..................................................................................................48创建新项目 ...................................................................................................484.4 剖析一个Android 项目 .................................................................................51Android 的清单文件 ......................................................................................51字符串资源 ...................................................................................................54布局XML 代码 .............................................................................................554.5 可绘制资源 ...................................................................................................56R 文件 ...........................................................................................................56Java 源代码 ...................................................................................................574.6 构建项目 .......................................................................................................584.7 Android 仿真器 .............................................................................................59仿真器与真实手机对比 .................................................................................594.8 总结 ...............................................................................................................62第5 章 主要构件 .......................................................... 635.1 一个实际的例子 ............................................................................................635.2 活动 ...............................................................................................................64活动的生命周期 ............................................................................................645.3 意图 ...............................................................................................................685.4 服务 ...............................................................................................................695.5 内容提供器 ...................................................................................................705.6 广播接收器 ...................................................................................................725.7 应用程序上下文 ............................................................................................725.8 总结 ...............................................................................................................74第6 章 Yamba 项目概况 .............................................. 756.1 Yamba 应用程序 ............................................................................................756.2 设计理念 .......................................................................................................796.3 项目设计 .......................................................................................................806.4 第1 部分:Android 用户界面 .......................................................................816.5 第2 部分:意图、活动条及其他 ..................................................................826.6 第3 部分:Android 服务 ..............................................................................826.7 第4 部分:内容提供器 .................................................................................836.8 第5 部分:列表和适配器 .............................................................................836.9 第6 部分:广播接收器 .................................................................................846.10 第7 部分:应用程序控件 ...........................................................................846.11 第8 部分:联网和Web(HTTP) ................................................................856.12 第9 部分:动态壁纸和处理程序 ................................................................856.13 总结 .............................................................................................................85第7 章 Android 的用户界面 ......................................... 877.1 创建用户界面的两种方法 .............................................................................87声明式用户界面 ............................................................................................87编程式用户界面 ............................................................................................88各取所长 .......................................................................................................887.2 视图和布局 ...................................................................................................88LinearLayout(线性布局) .............................................................................89TableLayout(表格布局) ..............................................................................90FrameLayout(帧布局) .................................................................................91RelativeLayout(相对布局) ..........................................................................927.3 启动Yamba 项目 ...........................................................................................937.4 StatusActivity 布局 ........................................................................................97重要的控件属性 ..........................................................................................101字符串资源 .................................................................................................1037.5 StatusActivity Java 类 .................................................................................104释放XML 到Java.......................................................................................104初始化对象 .................................................................................................106处理用户事件 ..............................................................................................1077.6 在Android 中记录消息日志 ........................................................................ 108LogCat.........................................................................................................108编译代码并构建项目:保存文件 ................................................................109添加Twitter API 库 .....................................................................................112更新清单文件以获取Internet 权限 ............................................................. 1137.7 Android 中的线程机制 ................................................................................114单线程 .........................................................................................................114多线程的执行 ..............................................................................................115AsyncTask(异步任务) ...............................................................................1167.8 其他UI 事件 ...............................................................................................1197.9 备用资源 .....................................................................................................1247.10 总结 ...........................................................................................................127第8 章 片段 .............................................................. 1298.1 片段示例 .....................................................................................................1298.2 片段的生命周期 ..........................................................................................1368.3 动态添加片段 ..............................................................................................1378.4 总结 .............................................................................................................139第9 章 意图、活动条及其他 ....................................... 1419.1 首选项 .........................................................................................................141首选项资源 .................................................................................................142SettingsActivity ...........................................................................................145更新清单文件 ..............................................................................................1479.2 活动条 .........................................................................................................148创建一个空白主活动 ...................................................................................149菜单资源 .....................................................................................................150Android 的系统资源 ....................................................................................152加载菜单 .....................................................................................................153更新StatusActivity 来处理菜单事件 ........................................................... 1549.3 共享首选项及更新消息片段 ....................................................................... 1559.4 文件系统简介 ..............................................................................................157访问文件系统 ..............................................................................................158文件系统分区 ..............................................................................................158系统分区 .....................................................................................................158SD 卡分区 ...................................................................................................158用户数据分区 ..............................................................................................160文件系统安全 ..............................................................................................1619.5 总结 .............................................................................................................161第10 章 服务 ............................................................ 16310.1 示例服务:RefreshService........................................................................ 164创建RefreshService Java 类 ........................................................................ 164介绍IntentService.......................................................................................166更新清单文件 ..............................................................................................167添加菜单项 .................................................................................................168更新选项菜单处理 ......................................................................................168测试服务 .....................................................................................................16910.2 从Yamba 提取数据 ...................................................................................169测试服务 .....................................................................................................17210.3 总结 ...............................................................................................172第11 章 内容提供器 .................................................. 17511.1 Android 上的数据库 ..................................................................................175关于SQLite.................................................................................................176DbHelper.....................................................................................................176数据库模式及其创建 ...................................................................................177四个主要操作 ..............................................................................................177游标 .............................................................................................................17811.2 消息合同类 ................................................................................................17911.3 更新RefreshService..................................................................................181测试服务 .....................................................................................................18411.4 内容提供器 ................................................................................................18611.5 创建一个内容提供器 .................................................................................187定义URI.....................................................................................................187获取数据类型 ..............................................................................................189插入数据 .....................................................................................................191更新数据 .....................................................................................................192删除数据 .....................................................................................................193查询数据 .....................................................................................................194更新Android 清单文件 ...............................................................................199更新RefreshService....................................................................................20011.6 总结 ...........................................................................................................201第12 章 列表和适配器 ............................................... 20312.1 主活动 .......................................................................................................20312.2 基本的主活动 ............................................................................................20312.3 时间表片段 ...............................................................................................205创建列表项布局 ..........................................................................................20612.4 关于适配器 ...............................................................................................20712.5 加载数据 ...................................................................................................20812.6 通过ViewBinder 定制逻辑 ....................................................................... 21112.7 详情视图 ...................................................................................................213详情片段 .....................................................................................................214详情活动 .....................................................................................................216注册到清单文件 ..........................................................................................217主活动,横向视图 ......................................................................................217更新时间表片段 ..........................................................................................21812.8 总结 ...........................................................................................................221第13 章 广播接收器 .................................................. 22313.1 关于广播接收器 ........................................................................................22313.2 开机接收器 ...............................................................................................224

内容摘要:

想为Android设备开发应用程序吗?本书是助你入门的良方。作者是培训了大机构和创业公司数百位开发人员的移动开发专家。这本优雅的导论给有面向对象开发经验的程序员展示了如何利用Android的基本构件来创建用户界面、存储数据和执行连接网络等操作。本书将一步步地引导你构建一个类似Twitter的应用程序,每章都添加一些新功能。你也将建立自己的代码模式工具包,借助它可以轻松地编写任何Android应用程序。■了解Android平台及其在移动生态系统中的地位。■深入了解Android套件,包括其应用程序框架及APK应用程序包。■学习活动、意图、服务、内容提供器和广播接收器等Android构件。■创建基本的Android用户界面,并利用视图和布局来组织界面元素。■在应用程序中构建一个执行后台进程来更新数据的服务。《Learning Android中文版(第2版)》是一本介绍Android 开发的入门图书,它循序渐进地介绍了如何利用Android 基本构件来创建用户界面、存储数据和执行连接网络等操作。《Learning Android中文版(第2版)》以亲手实现一个类Twitter 的应用程序为主线,通过不断为其添加功能展开讲解。而这一学习过程积累出的代码模式库,可以运用于实际Android 应用程序开发。《Learning Android中文版(第2版)》内容包括:Android 平台概览及其在移动生态系统中的地位、Android 设计架构、Android 开发环境配置、Android 构件、基本Android 的用户界面构建、界面元素组织方法、构建执行后台任务与更新数据的服务等。 《Learning Android中文版(第2版)》适合想快速掌握Android 开发知识或想从其他开发平台转向Android 的读者阅读。

书籍规格:

书籍详细信息
书名Learning Android中文版站内查询相似图书
9787121239809
如需购买下载《Learning Android中文版》pdf扫描版电子书或查询更多相关信息,请直接复制isbn,搜索即可全网搜索该ISBN
出版地北京出版单位电子工业出版社
版次1版印次1
定价(元)79.0语种简体中文
尺寸24 × 18装帧平装
页数印数

书籍信息归属:

Learning Android中文版是电子工业出版社于2014.8出版的中图分类号为 TN929.53 的主题关于 移动终端-应用程序-程序设计 的书籍。