Mastering Android Network Development cover

Mastering Android Network Development

No rating yet
Word count
960 words
Chapters
26
ISBN
9787115412744

Tags

Summary

Mastering Android Network Development, written by Wang Donghua and published by Posts & Telecom Press in March 2016, runs to about 960,000 characters over 589 pages, divided into 5 parts and 25 chapters. It is a practice-oriented book on Android network development written against Android 5.0. Part 1, Fundamentals, begins with setting up the Android development environment, covering SDK installation, Eclipse and ADT configuration, and emulator debugging, and then analyzes the Android system architecture, the composition of an application project, the five major components (Activity, Intent, Service, BroadcastReceiver, ContentProvider), and the lifecycles of processes and threads. Part 2, Network Data Communication, first lays the front-end groundwork of HTML, CSS, and JavaScript, then unfolds HTTP data communication: it covers both the Apache interface (HttpClient) and IP, URL, URLConnection, and Socket in the standard Java interfaces; it then moves on to handling data with URLs, XML parsing (including SAX), downloading remote data, and uploading data. Parts 3 to 5 move into modules and comprehensive hands-on projects, covering data communication with Sockets, browsing web pages with WebKit, Wi-Fi and Bluetooth system applications, sending and receiving email (commons-mail.jar, mail.jar), RSS parsing, network video playback with MediaPlayer and VideoView, and traffic monitoring with TrafficStats, along with complete case studies such as an online RSS reader, an email system, a mobile microblog, a network firewall, a web-based phone book management system, and a mobile WeChat-style system. The book is driven mainly by examples and suits self-study of Android networking, as well as training courses and classroom reference. Because it was written some time ago, its development environment is mainly Eclipse and Android 5.0; readers should migrate to the current Android Studio and newer APIs as they read.

Editor's review

如果你已经会写Android界面,却一碰到“数据从哪儿来、怎么安全地传”就发怵,这本书正好把网络相关的模块串成了一条线。它以Android 5.0为基准,从环境搭建和五大组件讲起,先补HTML、CSS、JavaScript的前端常识,再进入HTTP——HttpClient与Java标准接口两条路线都给了,随后是URL、XML解析、下载与上传、Socket,一层层把“网络数据怎么走”讲清楚。 后半程是最有价值的部分:WebKit加载网页、Wi-Fi与蓝牙、邮件收发、RSS解析、网络视频、TrafficStats流量统计,每一块都不只讲API,还配了可以跑起来的实例,最后用地道的综合项目收尾——RSS阅读器、邮件客户端、移动微博、网络防火墙、Web版电话本,甚至一个仿微信的ViewPager小系统。96万字的体量、589页的厚度,撑得起“案例书”的定位,也符合作者王东华作为一线Android工程师与架构师的实战视角。 需要提醒的是,书中开发环境以Eclipse与ADT为主,部分接口(如Apache HttpClient)在今天已不推荐或已废弃。把它当作理解Android网络层原理与模块设计的参考,再对照Android Studio与新版API动手重写,收益会大得多。

Who it's for

A good fit for

  • 已掌握Java基础与Android四大组件,想系统补齐网络开发能力的开发者
  • 需要独立完成数据上传下载、XML解析、Socket通信等模块的中初级Android工程师
  • 在校计算机专业学生与培训机构学员,作为网络编程课程配套读物
  • 希望能借鉴完整项目结构(RSS阅读器、邮件系统、流量监控)的实践型学习者

Not a good fit for

  • 完全没有Java或Android基础、连Activity都未写过的零起点读者
  • 只想要Android Studio、Kotlin或Jetpack Compose现代开发方案的读者
  • 期望直接获得生产级网络框架(如Retrofit、OkHttp最佳实践)进阶内容的资深工程师

Reading tips

  1. 先确认手头开发环境:书中以Eclipse与Android 5.0为例,建议在Android Studio中跟随重写代码,遇到API变更时查官方文档。
  2. 按“基础知识→HTTP通信→模块应用→综合实战”的顺序读,第4至9章务必动手敲完,这是全书地基。
  3. 对已废弃或式微的接口(如Apache HttpClient)只看原理,不必照搬;可用HttpURLConnection或OkHttp对照实现。
  4. 挑一个综合项目(推荐RSS阅读器或流量统计)从零复现,比通读更能固化网络层的知识。

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. Part 1 Fundamentals
  2. Chapter 1 Overview of Android Technology
  3. Chapter 2 Analysis of the Android Core Framework
  4. Chapter 3 Fundamentals of Network Development Technology (HTML, CSS, JavaScript)
  5. Part 2 Network Data Communication
  6. Chapter 4 HTTP Data Communication
  7. Chapter 5 Handling Data with URLs
  8. Chapter 6 Processing XML Data
  9. Chapter 7 Downloading Remote Data
  10. Chapter 8 Uploading Data
  11. Chapter 9 Data Communication with Sockets
  12. Part 3 Network Application Modules
  13. Chapter 10 Browsing Web Data with WebKit
  14. Wi-Fi System Applications
  15. Bluetooth System Applications
  16. Chapter 16 Email Applications (commons-mail.jar and mail.jar)
  17. Chapter 17 RSS Processing
  18. Chapter 18 Network Video Processing (MediaPlayer, VideoView)
  19. Chapter 19 Network Traffic Monitoring (TrafficStats)
  20. Part 5 Comprehensive Projects
  21. Chapter 20 Online RSS Reader
  22. Developing an Email System
  23. Developing a Mobile Microblog Application in Android
  24. Network Firewall System
  25. Developing a Web-Based Phone Book Management System
  26. Chapter 25 Mobile WeChat-Style System

FAQ

这本书用的是什么Android版本和开发工具?
全书以Android 5.0为技术基准编写,开发环境以Eclipse配合ADT、Android SDK为主,部分章节也提及前端技术。由于成书于2016年,现在主流已转向Android Studio与Kotlin,阅读时需自行做环境迁移。
书中网络部分覆盖了哪些主要内容?
包括搭建环境与核心框架、HTML/CSS/JavaScript基础、HTTP数据通信(Apache接口与Java标准接口)、URL处理数据、XML解析、数据下载与上传、Socket通信、WebKit浏览网页、Wi-Fi与蓝牙、邮件、RSS、网络视频、流量监控,以及多个综合项目。
零基础可以直接读这本书吗?
不太合适。书中默认读者具备Java基础和Android基本开发能力,开篇只花较短篇幅搭建环境、介绍五大组件便进入网络主题。建议先掌握Activity、Service、多线程与基础布局,再阅读本书。
书中的案例能直接运行吗?
案例思路与代码结构完整,但依赖的是当时的SDK、第三方jar(如commons-mail.jar、mail.jar)与Eclipse工程配置。在现行Android Studio中需要改造Gradle依赖、权限声明与API调用后才能跑通。
内容和现在的Retrofit、OkHttp相比还有价值吗?
作为具体框架的替代,它已不是首选;但其HTTP协议层、Socket通信、XML解析、流量统计与模块化项目的讲解,仍有助于理解Android网络底层的运作方式,适合打基础而非追新。

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

Wang Donghua is a technical book author about whom limited public information is available; the verifiable information currently centers on a single work. His representative work is Visual C++ Development from Beginner to Mastery, a programming and design title aimed at readers who wish to learn Visual C++ development systematically. Judging from the title and category, the book adopts a progressive approach that moves from basic introduction to deeper mastery, emphasizing development practice and a coherent knowledge framework. It suits beginners building a solid foundation as well as readers with some experience who want to fill gaps. Because only this one work is included and no reliable records exist for his birth and death dates, nationality, education, or professional experience, this profile makes no speculation on those points. Based on the available information, Wang Donghua's writing focuses on clearly explaining the learning path for a programming language and development tool, taking a practical orientation to help readers get past the entry threshold; his work reflects a style that stresses fundamentals and step-by-step progress among comparable technical tutorials.

More by the same author

Top rated in the same category