Android Programming cover

Android Programming

No rating yet
Word count
434 words
Chapters
31
ISBN
9787111532897

Tags

Summary

This is an Android application development textbook published by China Machine Press in 2016, compiled by Wei Yanjun. Part of a higher education planning textbook series, it is aimed at college students and self-learners who already have some programming foundation. The book is organized around an "example-driven, progressive" approach. It opens with an overview of Android's development, the SDK architecture, and basic development tools, and uses Eclipse to demonstrate the creation, running, and project structure of the simplest Android program. It then fills in Java fundamentals, including basic data types and variables, operators and expressions, control structures such as sequence, branching, looping, and exceptions, and composite data types such as arrays, strings, date and time, collections, maps, and math and random types. Chapter 3 moves into object orientation, covering packages and classes, member variables and methods, constructors, objects, inheritance, abstract classes, and interfaces. On this basis, the book turns to Android interface and interaction: it introduces common layouts such as LinearLayout, GridLayout, FrameLayout, RelativeLayout, AbsoluteLayout, and TableLayout; basic controls and event handling for Button, TextView, EditText, CheckBox, RadioButton, ProgressBar, SeekBar, Spinner, ListView, date and time pickers, and clock controls; and the various resource files under the res directory and project deployment methods. It then covers title bar customization, options menus and context menus, multiple Activities and Intent navigation, and dialogs such as Toast and AlertDialog, forming the basic framework for multi-screen programming. The latter half extends to practical technologies such as file operations, multimedia, network communication, databases, and sensors, and ties the preceding knowledge points together with a "weather forecast robot" client case. The appendixes gather the Android SDK, common Java packages and classes, an index of common Android resources, common Eclipse shortcuts, and methods for debugging Android programs. The book comes with electronic courseware and example source code, and each chapter includes comprehensive examples and exercises, making it suitable as a course textbook or supplementary reference.

Editor's review

这本书最大的特点是“把 Java 补课和 Android 入门放在一起讲”。很多零基础同学一上手就卡在两处:不会写 Java,也不知道 Android 工程里那些目录、清单文件、资源文件各管什么。本书第 2、3 章系统梳理语法与面向对象,第 1、4 章则带着读者从建工程、拖布局到绑定事件完整走一遍,衔接得比较顺。 编排采用实例主线加综合例题的方式:每章有综合例题、每章末尾有习题,几个技术模块(界面、多界面、文件、多媒体、网络、数据库、传感器)都落到可以运行的小程序上,最后再用一个“天气预报机器人”客户端把这些点串起来,学的人能看出知识之间的接缝在哪里。 附录也是一大加分项:Android SDK 体系结构、Java 常用包与类、常用资源索引、Eclipse 快捷键、调试 Android 程序的方法集中在一处,日常查用方便。出版社配套提供电子课件和全部实例源代码,教师可直接用于授课,自学者可以对照代码逐行验证。 需要提醒的是,书中开发环境以 Eclipse + ADT 为主线,这是该书出版年代的典型配置,如今主流工具已换成 Android Studio,读者阅读时要把重心放在布局、控件、Activity 生命周期、资源管理这些不会随工具变化的原理上,工具操作部分则按当前官方文档自行替换对照,学习效果会更好。

Who it's for

A good fit for

  • 已学过 Java 或正在补 Java 基础、想系统入门 Android 的在校学生
  • 高职高专及本科计算机相关专业,需要一本配套课件与源码的课程教材的师生
  • 有 C/Java 基础、多年未碰移动开发、想了解 Android 应用整体架构的自学者
  • 需要快速了解布局、控件、Activity、资源文件等基础知识的转行开发者

Not a good fit for

  • 只想直接学 Kotlin 与 Jetpack Compose 的现代 Android 开发者
  • 期待深入讲解性能优化、架构模式与工程实践的中高级工程师
  • 完全没有编程经验、连变量与循环都未接触的纯粹零基础读者

Reading tips

  1. 先按第 1 章把工程建起来、跑通第一个程序,再回头补第 2、3 章语法,避免只看语法不动手。
  2. 第 4 章布局与控件是重点,建议边读边改 XML 与 Java 代码,观察界面变化,把每种布局都用一遍。
  3. 书中的 Eclipse 操作可在 Android Studio 中对照完成,记住工程结构、清单文件与资源目录的对应关系即可平移。
  4. 读完后半部分时,跟着“天气预报机器人”案例从网络请求、数据解析到界面展示完整实现一次,比零散抄例子更有收获。

About the publisher

China Machine Press China · Founded in 1950

In addition to science and technology and professional publishing, the books in our catalog from China Machine Press also reflect a sustained focus on psychology, computing, management, finance and economics, and social sciences. In psychology, the catalog includes works by C. G. Jung and introductions to analytical psychology, as well as applied topics such as stress and health, and addiction and healing. In computing, it features Structure and Interpretation of Computer Programs (JavaScript Edition). Management and finance titles include Administrative Behavior (4th Edition), The Price of Inequality (Collector's Edition), and This Time Is Different: Eight Centuries of Financial Folly (Commemorative Edition). In the philosophy and history of science, there is The Worldview: The Third Edition. Relevant authors include C. G. Jung, William McGuire, Sonu Shamdasani, and Gabor Maté. Public information is limited; the above summarizes the publisher's profile based solely on the books in our catalog.

Contents

  1. Publishing Note
  2. Preface
  3. Chapter 1 Introduction to Android
  4. 1.1 Android Basics (Android Overview, Android SDK Architecture, Introduction to Basic Android Development Tools)
  5. 1.2 Steps in Android Program Development (Basic Android Program Structure, Developing a Simple Android Program with Eclipse)
  6. 1.3 Comprehensive Example
  7. 1.4 Exercises 1
  8. Chapter 2 Basic Syntax
  9. 2.1 Basic Data Types and Variables (Integer, Character, Floating-Point, Boolean Types)
  10. 2.2 Operators and Expressions (Arithmetic, Relational, Logical, Bitwise Operators)
  11. 2.3 Control Structures and Standard Input/Output (Sequence, Branching, Looping, Exception Control Structures)
  12. 2.4 Composite Data Types (Arrays, Strings, Date and Time, Collections, Maps, Math and Random Types)
  13. 2.5 Comprehensive Example
  14. 2.6 Exercises 2
  15. Chapter 3 Object Orientation
  16. 3.1 Classes, Members, and Objects (Packages and Classes, Member Variables, Member Methods, Constructors, Objects)
  17. 3.2 Class Inheritance (Overview of Class Inheritance, Abstract Classes, Interfaces)
  18. 3.3 Comprehensive Example
  19. 3.4 Exercises 3
  20. Chapter 4 Basic Visual Programming
  21. 4.1 Basic Layouts (LinearLayout, GridLayout, FrameLayout, RelativeLayout, AbsoluteLayout, TableLayout)
  22. 4.2 Basic Controls and Events (Button, TextView and EditText, CheckBox and RadioButton, ProgressBar and SeekBar, Spinner and ListView, DatePicker and TimePicker, AnalogClock and DigitalClock)
  23. 4.3 Basic Resource Files (res/layout, res/values, res/drawable, res/menu, res/raw, assets, res/anim, res/xml)
  24. 4.4 Project Deployment
  25. 4.5 Comprehensive Example
  26. 4.6 Exercises 4
  27. Chapter 5 Multi-Screen Programming
  28. 5.1 Customizing the Title Bar
  29. 5.2 Menus (Options Menu, Context Menu)
  30. 5.3 Multiple Activities and Intents
  31. 5.4 Dialogs (Toast, AlertDialog, etc.)

FAQ

这本书适合完全没有编程基础的人吗?
不太适合。作者在书中说明,本书面向具有一定基础的读者,第 2、3 章虽然系统讲 Java 语法与面向对象,但节奏偏教材式,没有编程经验的人最好先学完一门 Java 入门课再来读。
书中使用 Eclipse 还是 Android Studio?
书中开发环境以 Eclipse 为主,配套介绍 SDK 体系结构与 Eclipse 调试方法,这与 2016 年的出版时间相符。现在学习建议在 Android Studio 中对照完成相同操作,重点理解布局、控件、Activity 与资源管理。
这本书有配套的课件和源代码吗?
有。机械工业出版社为该教材提供电子课件和全部实例源代码,教师可申请样书与资源,读者也可按出版社页面说明获取,配合书中综合例题一起使用效果最好。
书里的内容现在还有用吗?
基础部分依然有参考价值,包括 Java 语法、布局体系、常用控件、事件处理、Activity 与 Intent、资源文件组织、数据存储与网络访问思路等;但旧版 SDK、Eclipse 插件与当年的界面规范已过时,需要结合最新官方文档更新实践方式。

Comments

Find this book

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.

Top rated in the same category