First Line of Code: Android (3rd Edition) cover

First Line of Code: Android (3rd Edition)

No rating yet
Chapters
16
ISBN
9787115524836

Tags

Summary

First Line of Code: Android, 3rd Edition is an Android development primer by Guo Lin, recommended by many Android developers as the preferred introductory reading for learning Android. The book is a comprehensive update of the 2nd Edition based on Android 10.0: all knowledge points have been re-adapted on the Android 10.0 system, and the development language has been changed from Java, used in the previous two editions, to Kotlin, which Google champions—all code in the book has been rewritten in Kotlin. Unlike the old editions, which assumed readers had a Java foundation, the 3rd Edition systematically teaches the Kotlin language from scratch, so readers need no Kotlin background whatsoever. The content begins with setting up the development environment and running the first Android program, then proceeds through Activity, UI development, Fragment, the broadcast mechanism, data persistence, ContentProvider, multimedia, Service, and network technology, with a dedicated chapter, "Material Design in Action," that sorts out interface design specifications. The advanced section covers Jetpack architecture components and various advanced development techniques, and the final two hands-on chapters guide readers through completely developing a weather forecast app and writing and publishing an open-source library, PermissionX. The book also covers new system features such as Android 8.0 notification channels and adaptive app icons, Android 9.0 restrictions on cleartext network traffic, and Android 10.0 dark theme mode, and introduces knowledge points such as Retrofit, coroutines, and MVVM. At about 690 pages, the book progresses from shallow to deep in an accessible style, and comes with source code, mind maps, and PPT teaching courseware. It is suitable both for beginners reading sequentially and as a reference manual for consultation at any time.

Editor's review

这是一本被反复推荐给Android新手的入门书,第3版做了一次彻底翻新:全书代码由Java改为Kotlin,而且是真正从零讲Kotlin,不需要你先补语言基础。这在入门书里比较少见——很多书要么假定你会Kotlin,要么只把Kotlin当语法附录。 第二点是版本贴合度。第3版的讲解基于Android 10.0,并把Android 8.0的通知渠道与图标适配、9.0的明文网络传输限制、10.0的深色主题等变化都点到了。对自学者来说,这些“书上一跑就报错”的适配细节往往比核心概念更磨人,作者把这些内容写进正文,省下不少踩坑时间。 第三是结构完整。从环境搭建到四大组件、UI、持久化、网络,再到Material Design、Jetpack、Retrofit、协程,最后两个实战——天气预报App(贯穿MVVM)与开源库PermissionX——把知识与工程实践串了起来。作者郭霖长期在CSDN写作,行文口语化、以“手把手”推进,读起来不枯燥;配套还提供源码、思维导图和PPT课件。 需要注意:本书出版于2020年,技术栈以当时的Android 10与旧版工具链为准,如今Android Studio、Gradle与Jetpack库已有大量更新,部分操作步骤需要读者自行对照官方文档调整,但这不影响它作为理解Android开发整体脉络的入门读物。

Who it's for

A good fit for

  • 有至少一门编程语言基础、想系统入门Android开发的自学者
  • 从Java转向Kotlin开发、需要一本完整教程对照实践的工程师
  • 高校计算机相关专业学生,可作为移动开发课程的配套教材
  • 已经会写零散代码、想补齐四大组件与架构知识结构的开发者

Not a good fit for

  • 完全没有编程经验、也不打算先补基础语法的读者
  • 想学习最新Android版本与最新Jetpack特性、需要紧跟时下技术栈的资深开发者
  • 只想查某个具体API用法、不需要系统通读的工具书型读者

Reading tips

  1. 先按第1章把环境和HelloWorld跑通,再往下读,不要跳过动手环节;书上的步骤若因工具版本变化对不上,以官方文档为准。
  2. 第2章Kotlin要踏实读完,后续所有代码都基于它;有Java经验者可加快速度,但不要跳过协程部分。
  3. 第3至12章为主线,建议每读完一章就把示例改成自己的小功能,第13、14章可在做完一个完整App之后再回头细读。
  4. 第15、16章两个实战项目务必亲手敲完,这是把散点知识串成工程能力的关键;遇到问题可对照作者的CSDN博客补充。
  5. 鉴于本书基于Android 10,配置Gradle、SDK与依赖时优先使用书中指定版本或相近版本,避免因版本跨度过大产生大量无关报错。

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 Setting Off—Your First Line of Android Code
  2. Chapter 2 Exploring a New Language—A Quick Start to Kotlin Programming
  3. Chapter 3 Starting with What You Can See—Exploring Activity
  4. Chapter 4 Software Needs a Pretty Face Too—The Ins and Outs of UI Development
  5. Chapter 5 Balancing Phones and Tablets—Exploring Fragment
  6. Chapter 6 The Global Loudspeaker—Broadcast Mechanisms in Detail
  7. Chapter 7 The Complete Data Storage Solution—Persistence Techniques in Detail
  8. Chapter 8 Sharing Data Across Programs—Exploring ContentProvider
  9. Chapter 9 Enriching Your App—Using Phone Multimedia
  10. Chapter 10 The Quiet Worker in the Background—Exploring Service
  11. Chapter 11 Seeing the Wonderful World—Using Network Technology
  12. Chapter 12 The Best UI Experience—Material Design in Action
  13. Chapter 13 Advanced App Development Components—Exploring Jetpack
  14. Chapter 14 Continuing the Advance—Advanced Techniques You Should Also Master
  15. Chapter 15 Into Action—Developing a Weather Forecast App
  16. Chapter 16 Writing and Publishing an Open-Source Library—PermissionX

FAQ

第3版和第2版有什么区别?需要买新版吗?
第3版是较大幅度的改写:开发语言由Java换成Kotlin,全书代码重写;新增Kotlin语言全面讲解,不再默认读者有Java基础;内容基于Android 10.0重新适配,并新增Jetpack、Retrofit、协程、MVVM等内容与两个实战项目。若你没有旧版,直接买第3版即可。
零基础、没学过编程能读懂吗?
不太适合。书中不假设你会Kotlin,但默认你已掌握至少一门编程语言的基本语法(变量、循环、函数、面向对象等)。完全没有编程经验的话,建议先补一门语言基础再回来读。
需要先学Java吗?
不需要。第3版全部代码使用Kotlin,并专门用一章从零讲解Kotlin。当然,有Java基础会让你更快理解一些概念,但不是必要条件。
书里的代码现在还能跑通吗?
本书出版于2020年,基于Android 10与当时的Android Studio、Gradle版本。如今工具链已多次更新,部分界面与依赖写法会不一致,建议按书中指定的版本配置环境,或对照官方文档调整后再运行。
有配套源码和课件吗?
有。该书提供全书配套源代码、知识架构思维导图和PPT教学课件,适合自学者对照练习,也方便教师用于授课。

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.

About the author

郭霖 Author

Guo Lin: public information about this author is limited, and currently only one work is known, Interpersonal Communication and Public Expression, classified under inspirational growth. Judging from the title, the book concerns the transmission of information between people, the building of relationships, and the ability to speak in public settings, placing it in the practical writing category aimed at general readers. Works of this kind usually start from everyday interaction and workplace situations and discuss listening, wording, emotional awareness, and methods of speaking before an audience, in a style that tends to be plain, direct, and easy to apply rather than academically dense. On the available evidence, Guo Lin's writing centers on this theme of communication and expression, while details of the author's background, professional experience, and full body of work await further information. Readers interested in interpersonal skills and expression techniques may find this book a useful introductory reference on the topic.

More by the same author

Top rated in the same category