Java and Android Development: A Beginner's Guide (2nd Edition) cover

Java and Android Development: A Beginner's Guide (2nd Edition)

No rating yet
Chapters
40
ISBN
9787115417534

Tags

Summary

This book is the Chinese translation of the English original Java for Android, 2nd Edition, written for readers who want to master the Java language and then engage in Android app development. The book has 50 chapters in total, divided into two major parts in learning order. Part One (Chapters 1 to 22) systematically explains the basics and core features of the Java language: starting from downloading and installing Java, the first program, coding conventions, and integrated development environments, it then introduces language basics, statements, objects and classes, core class libraries, arrays, inheritance, error handling, number operations, interfaces and abstract classes, polymorphism, enums, date and time handling, the collections framework, generics, input/output, annotations, nested and inner classes, threads, concurrency utilities, internationalization, and network programming. Part Two (Chapters 23 to 50) moves into practical Android platform development: first an overview of Android and setting up the development environment, then chapter by chapter covering activities, UI components, layouts, listeners, the action bar, menus, ListView, GridView, styles and themes, bitmap handling, graphics and custom views, fragments and multi-panel layouts, animation, preferences, file and database operations, taking photos and recording video, recording sound, Handler, asynchronous tools, services, broadcast receivers, alarm services, and content providers. The examples in the book are based on Java 8 and the official Android development environment of the time, and the appendices include descriptions of the three command-line tools javac, java, and jar, as well as brief introductions to NetBeans and Eclipse.

Editor's review

把 Java 和 Android 放在一本书里讲,是这本书最实用也最容易被低估的设计。很多零基础读者卡在“Java 学完不会做 App”这道坎上,而 Android 教程又默认你已经熟悉 Java 语法、集合、线程和 I/O,结果两头落空。 本书由 Java 教程作者 Budi Kurniawan 编写,他以讲解清晰著称,其 Java 教程曾被德国斯图加特传媒学院选作教材;译者李强保持了技术表述的准确性。全书 50 章的切分非常细,每章篇幅不长、主题单一,适合按天推进,不会让人一翻开就被长章节压住。 第 1—22 章覆盖从环境安装到网络编程的 Java 主干,第 23—50 章顺着 Android 开发的实际动线展开:活动、布局与 UI 组件、列表与网格、片段与多面板、动画、文件与数据库、拍照录音、Handler 与异步、服务与广播接收器、内容提供者,几乎把做一个完整 App 会碰到的模块依次过了一遍。附录的 javac、java、jar 和 NetBeans/Eclipse 简介,对习惯依赖 IDE 的读者也是一种补充。 需要坦率说明的是,原书英文版出版于 2015 年,中文版 2016 年上市,示例基于 Java 8 与当时的 Android 官方开发环境。对于今天以 Kotlin 和 Android Studio 为主的开发实践来说,书中的工具链与部分 API 表述已经过时,读者要把它当作“打地基”的书,而不是“抄最新代码”的书。

Who it's for

A good fit for

  • 完全没有 Java 基础、希望从零开始系统学习的编程新手
  • 会一点编程但没系统学过面向对象、想补齐 Java 主干知识的读者
  • 打算从 Java 转向 Android 应用开发、需要了解 Android 各模块的入门者
  • 在校学生或培训班学员,需要一本结构清晰、章节细碎可循序推进的教材式读物

Not a good fit for

  • 已经熟练使用 Kotlin 与 Android Studio 进行开发、只想找最新实践的中高级 Android 工程师
  • 希望通过本书直接上手 Jetpack Compose 等现代 Android 框架的读者
  • 只想抄一段能跑通的代码、不愿按章节循序学习的读者

Reading tips

  1. 先按第1—22章顺序读通 Java 部分,每章亲手敲完示例代码,不要跳过环境安装与编译运行两步。
  2. 进入 Android 部分后每学一个新组件(如活动、ListView、片段),立刻补一个自己能想出来的小功能进行练习。
  3. 把附录的 javac、java、jar 当作工具手册随手查阅,理解命令行编译有助于排查 IDE 报错。
  4. 阅读时对照官方文档核对 API 的现行写法,对书中已过时的工具链内容做标记而非照搬。

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. Chapter 1: Java Basics
  2. Chapter 2: Language Basics
  3. Chapter 3: Statements
  4. Chapter 4: Objects and Classes
  5. Chapter 5: Core Classes
  6. Chapter 6: Arrays
  7. Chapter 7: Inheritance
  8. Chapter 8: Error Handling
  9. Chapter 9: Working with Numbers
  10. Chapter 10: Interfaces and Abstract Classes
  11. Chapter 11: Polymorphism
  12. Chapter 12: Enums
  13. Chapter 13: Working with Dates and Times
  14. Chapter 14: The Collections Framework
  15. Chapter 15: Generics
  16. Chapter 16: Input/Output
  17. Chapter 17: Annotations
  18. Chapter 18: Nested and Inner Classes
  19. Chapter 19: Threads
  20. Chapter 20: Concurrency Utilities
  21. Chapter 21: Internationalization
  22. Chapter 22: Networking
  23. Chapter 23: Introduction to Android
  24. Chapter 24: Getting Started with Android
  25. Chapter 25: Activities
  26. Chapter 26: UI Components
  27. Chapter 27: Layouts
  28. Chapter 28: Listeners
  29. Chapter 29: The Action Bar
  30. Chapter 30: Menus
  31. Chapter 31: ListView
  32. Chapter 32: GridView
  33. Chapter 33: Styles and Themes
  34. Chapter 34: Bitmap Handling
  35. Chapter 35: Graphics and Custom Views
  36. Chapter 36: Fragments
  37. Chapter 37: Multi-Panel Layouts
  38. Chapter 38: Animation
  39. Chapter 39: Preferences
  40. Chapter 40: Working with Files

FAQ

这本书和《Java for Android》是什么关系?
本书是 Budi Kurniawan 所著《Java for Android》第 2 版的中文译本,由李强翻译、人民邮电出版社 2016 年出版,据 2015 年英文原著第 2 版译出。
书里的 Android 内容现在还能直接用吗?
原书成书于 2015 年前后,示例基于 Java 8 和当时的 Android 官方开发环境。今天的主流实践已转向 Kotlin 与 Android Studio,书中工具链与部分 API 表述会过时,建议作为基础概念学习,动手时对照官方最新文档。
零基础能直接读吗?
可以。第 1 章从 Java 的下载安装、第一个程序讲起,之后逐步进入语法、对象与类、集合、线程等内容,不预设编程经验,但需要读者愿意动手编译运行代码。
这本书有多少章、大概多厚?
全书共 50 章,分为 Java 基础(第 1—22 章)与 Android 开发(第 23—50 章)两部分,正文约 498 页,另附 5 个附录。
读完能独立做出一个 Android App 吗?
书中覆盖了活动、布局、UI 组件、列表、片段、动画、文件与数据库、多媒体、服务与内容提供者等常用模块,按章节动手练习后具备独立开发简单本地应用的能力,但复杂架构与网络后端集成仍需另行学习。

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.

More by the same author

Top rated in the same category