Android Application Development Case Tutorial (Android Studio Edition)

张霞 / 肖正兴 / 李斌 / 李金子Posts & Telecom Press · ChinaAug 2021

Rating 3.4
Word count
51K words
Chapters
155
ISBN
9787115446893

Tags

Examinations UI DesignMobile DevelopmentSoftware DevelopmentStep-by-Step GuideField CasesCase TutorialProgramming TutorialSelf-Study GuideStudent ReadingBeginner Friendly

Summary

This book is accessible and highly practical. It is divided into nine chapters. Chapters 1–7 introduce the fundamentals of Android Studio in detail, covering Android UI design, activities and multiple user interfaces, multimedia playback and recording, broadcasts and services, data storage, images and animation, and network programming. Chapters 8 and 9 present two practice projects that help readers integrate what they have learned and extend it appropriately with current Android technologies.

Editor's review

Android App Development by Example (Android Studio Edition) is a practice-oriented textbook for beginners in Android development. Using the mainstream Android Studio as its development environment, it connects the core knowledge of Android app development through a wealth of examples. From an editor's perspective, its greatest value lies in its clear case-driven teaching logic: every important concept comes with a runnable code example, avoiding the tedium of purely theoretical exposition.

In terms of content organization, the book covers key modules such as the Android development framework, UI design, data storage, and network communication, with particular emphasis on Material Design guidelines and Fragment, an essential skill in modern Android development. Compared with similar textbooks, it describes practical details such as configuring the Android Studio environment and debugging techniques in greater depth, which helps beginners avoid common pitfalls in early environment setup.

It is worth noting that the cases are oriented toward teaching demonstrations and have limited complexity for real commercial projects; the book is better suited to building a systematic knowledge framework than to directly tackling complex project requirements. The code style is standardized and the comments are detailed, but some cases, due to the time of publication, do not cover the latest technology trends such as Jetpack Compose. Overall, this is a solid introductory stepping-stone that gives readers a good foundation in Android development thinking.

Who it's for

A good fit for

Not a good fit for

Reading tips

  1. Read the chapters in order, and be sure to run each code example yourself and understand its logic
  2. While reading, consult the official Android documentation to compare the standard definitions of the concepts in the book
  3. After completing the foundational chapters, try extending the book's examples with custom features to reinforce your learning

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. 版权信息
  2. 内容提要
  3. 前言
  4. 第1章 Android UI设计
  5. 1.1 新建Android项目
  6. 1.1.1 Android Studio自动构建新项目
  7. 1.1.2 Android项目结构
  8. 1.1.3 res资源引用方法
  9. 1.1.4 AndroidManifest.xml项目配置文件
  10. 1.1.5 Android应用程序架构分析
  11. 1.2 Android布局管理
  12. 1.2.1 布局文件的规范与重要属性
  13. 1.2.2 常见的布局方式
  14. 1.3 用户界面组件包
  15. 1.3.1 widget包
  16. 1.3.2 View类
  17. 1.4 常用组件
  18. 1.4.1 文本框
  19. 1.4.2 文本编辑框
  20. 1.4.3 图像显示类
  21. 1.4.4 按钮
  22. 1.4.5 进度条
  23. 1.4.6 单选组件与单选按钮
  24. 1.4.7 复选框
  25. 1.5 列表组件
  26. 1.5.1 ListView类
  27. 1.5.2 数组适配器
  28. 1.5.3 使用ListActivity类改写程序
  29. 1.5.4 带图片的列表:定制的列表布局
  30. 1.5.5 没有数据的ListView
  31. 1.6 实战演练——生肖背后的故事
  32. 第2章 Activity与多个用户界面
  33. 2.1 什么是Activity
  34. 2.1.1 启动Activity要素
  35. 2.1.2 Activity与布局之间的关系
  36. 2.1.3 Activity与View之间的关系
  37. 2.2 创建新的Activity
  38. 2.3 Intent介绍
  39. 2.3.1 显式Intent
  40. 2.3.2 隐式Intent
  41. 2.3.3 Activity之间的跳转
  42. 2.4 Bundle类及应用Intent传递数据
  43. 2.4.1 Bundle类
  44. 2.4.2 应用Intent在不同的Activity之间传递数据
  45. 2.5 消息提示类
  46. 2.6 对话框
  47. 2.6.1 消息对话框
  48. 2.6.2 其他常用对话框
  49. 2.7 菜单设计
  50. 2.7.1 选项菜单
  51. 2.7.2 上下文菜单
  52. 2.8 实战演练——BMI体质指数计算器
  53. 第3章 多媒体播放与录制
  54. 3.1 音频播放
  55. 3.1.1 多媒体处理包
  56. 3.1.2 多媒体处理播放器
  57. 3.1.3 播放音频文件
  58. 3.1.4 播放SD卡里的文件
  59. 3.2 视频播放
  60. 3.2.1 应用媒体播放器播放视频
  61. 3.2.2 应用视频播放器播放视频
  62. 3.3 录音与拍照
  63. 3.3.1 MediaRecorder类
  64. 3.3.2 录音示例
  65. 3.3.3 拍照
  66. 3.4 实战演练——音乐播放器
  67. 第4章 广播与服务
  68. 4.1 消息广播
  69. 4.2 Android的系统服务
  70. 4.2.1 常见的系统服务
  71. 4.2.2 系统功能的调用
  72. 4.3 后台服务
  73. 4.4 实战演练——播放后台音乐
  74. 第5章 数据存储
  75. 5.1 文件存储
  76. 5.1.1 内部存储
  77. 5.1.2 外部存储
  78. 5.2 JSON数据格式
  79. 5.2.1 JSON数据介绍
  80. 5.2.2 JSON数据结构
  81. 5.2.3 JSON文件
  82. 5.2.4 解析JSON数据
  83. 5.3 轻量级存储SharedPreferences
  84. 5.4 SQLite数据库
  85. 5.4.1 SQLite数据库简介
  86. 5.4.2 数据库的管理和操作
  87. 5.4.3 数据表的管理和操作
  88. 5.4.4 数据记录的管理和操作
  89. 5.5 实战演练——掌上日记本
  90. 第6章 图像和动画
  91. 6.1 图形绘制
  92. 6.1.1 几何图形绘制类
  93. 6.1.2 几何图形的绘制过程
  94. 6.2 动画技术
  95. 6.2.1 动画组件类
  96. 6.2.2 补间动画
  97. 6.2.3 属性动画
  98. 6.3 图像浏览
  99. 6.3.1 图像显示类
  100. 6.3.2 图片切换类
  101. 6.3.3 网格视图
  102. 6.4 游戏中的触屏事件处理
  103. 6.5 实战演练——图片与动画
  104. 第7章 网络编程
  105. 7.1 基于WebKit的网络程序设计
  106. 7.1.1 WebKit库
  107. 7.1.2 Web视图WebView类
  108. 7.2 基于HTTP的网络程序设计
  109. 7.2.1 HttpURLConnection类
  110. 7.2.2 StrictMode类
  111. 7.3 应用Volley框架访问Web服务器
  112. 7.3.1 Volley包的下载与安装
  113. 7.3.2 Volley的工作原理和重要对象
  114. 7.3.3 Volley的基本使用方法
  115. 7.4 应用Volley框架解析JSON数据
  116. 7.5 实战演练——城市天气预报
  117. 第8章 实践项目——分享动漫
  118. 8.1 项目介绍
  119. 8.1.1 主要技术
  120. 8.1.2 运行截屏
  121. 8.1.3 项目的图片资源
  122. 8.1.4 项目的JSON资源
  123. 8.1.5 项目的文件清单
  124. 8.1.6 工程准备
  125. 8.2 项目制作
  126. 8.2.1 完善主页布局文件
  127. 8.2.2 单击侧滑栏菜单的跳转
  128. 8.2.3 设计作品列表布局文件
  129. 8.2.4 完善主页控制文件
  130. 8.2.5 RecyclerViewAdapter适配器
  131. 8.2.6 作品列表控制文件
  132. 8.2.7 作品内容控制文件
  133. 8.2.8 完善配置文件
  134. 8.3 项目拓展
  135. 第9章 实践项目——天气预报
  136. 9.1 项目介绍
  137. 9.1.1 主要技术
  138. 9.1.2 运行截屏
  139. 9.1.3 项目文件
  140. 9.2 工程准备
  141. 9.2.1 API
  142. 9.2.2 assets文件夹
  143. 9.2.3 图片资源
  144. 9.2.4 网络权限
  145. 9.3 项目制作
  146. 9.3.1 用MyDBHelper创建数据库
  147. 9.3.2 创建天气信息布局文件
  148. 9.3.3 完善天气信息控制文件
  149. 9.3.4 适配器
  150. 9.3.5 完善主页布局文件
  151. 9.3.6 完善主页控制文件
  152. 9.3.7 设计城市列表布局文件
  153. 9.3.8 设计城市列表控制文件
  154. 9.4 项目拓展
  155. 附录 Android Studio的安装与配置

FAQ

What prior knowledge does this book require? A basic knowledge of Java programming and object-oriented programming concepts is required. A basic understanding of XML and databases will make it easier to get started, but is not essential.
Are the code examples in the book complete and usable? The examples are written for the Android Studio environment, and the code is complete and tested. Note, however, that updates to the Android SDK version may require minor adaptation adjustments.
What are the main differences between this book and older Android textbooks based on Eclipse? This book is entirely based on the Android Studio development environment and covers the use of modern toolchains such as the Gradle build system and the layout editor. It also introduces new design guidelines such as Material Design, making it more in line with current development practice.

Related on WeRead

Android应用开发案例教程(Android Studio版) 张霞

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

About the author

张霞 Author

Zhang Xia is a Chinese author whose works span a notably wide range of subjects, though public information about her is limited and her nationality, dates of birth and death, and educational background are not clearly recorded. Judging from the eleven works held in the collection, her writing covers medicine, food, social culture, essays and miscellaneous writings, examinations, and politics. In medicine, the volume on Ding Ying's clinical experience in pediatric kidney and rheumatic immune diseases reflects an interest in organizing clinical experience in traditional Chinese pediatrics. In food, her works include titles on Cantonese dim sum, pastry baking, and Chinese dim sum, with an emphasis on practical operation and teaching. The diary of refuge in the ren-gui and xin-mao years belongs to the compilation of modern historical sources, while the study of mechanisms for building political consensus in the Chinese People's Political Consultative Conference has a political-science orientation. Overall, Zhang Xia appears to be a compiler who combines professional organization with popularization, and her works are notable for their practicality and documentary value.

肖正兴 Author

Xiao Zhengxing is an author with published works in the field of Chinese-language technical education books. Public information about him is limited, and details such as his nationality, dates of birth and death, education, and professional positions cannot currently be confirmed. Judging from the three works held in the library, his writing focuses on mobile application and Java development, including Android Application Development Case Tutorial (Android Studio Edition), Android Studio Mobile Application Development Task Tutorial (Micro-Lecture Edition), and Java Application Development Technology Example Tutorial. These titles show a clear practical orientation: content is organized around cases and tasks, supported by formats such as micro-lectures, and aimed at classroom learning and hands-on practice for university computer courses and beginners. The works are categorized under examinations, suggesting they are also used for exam preparation and skills training. Overall, he is a writer of technical tutorials that rely on specific development tools and emphasize operational steps and example-based practice.

李斌 Author

Li Bin's works span a broad range of subjects, covering legal practice, social documentary writing, and philosophical reading. In corporate law, he offers practical analysis of the design of articles of association and shareholder disputes, using real cases to discuss corporate control, combining operational guidance with cautionary insight. In the field of historical documentary writing, he took part in compiling and translating several volumes of the Historical Materials on the Nanjing Massacre, including the diaries and recollections of Japanese officers and soldiers as well as related reporting in Japanese newspapers of the time, providing primary sources for researchers. He has also produced reader-friendly interpretations of classics such as Mencius: A Reader and Sunzi: A Reader. Because public information is limited, his dates of birth and death, nationality, and educational background remain unknown, but these thirty works show that he attends both to practical legal issues and to historical sources and the popularization of traditional culture.

李金子 Author

Li Jinzi is an author in the Chinese book market about whom limited public information is available; neither verified biographical details nor personal experience can be confirmed at present. Only one work by this author is held in the collection, namely Android Application Development Case Tutorial (Android Studio Edition), which is classified under exam preparation and is aimed at readers who need to study for exams or learn Android application development systematically. Judging from the title and category, the book takes case-based teaching as its main approach, centers on the Android Studio development environment, and emphasizes explaining development processes and key operations through concrete examples, making it a typical practical technical tutorial. The author stresses clear steps and operable content so that readers can practice along with the text, and the book is suitable as a course textbook or for self-study. In the absence of further biographical information, this book is the main basis for understanding the author's editorial direction and reflects a practical commitment to teaching mobile application development.