Learn Java for Android Development, 2/e (Paperback)
暫譯: 學習 Java 進行 Android 開發,第二版 (平裝本)

Jeff Friesen

買這商品的人也買了...

相關主題

商品描述

Android development is hot, and many programmers are interested in joining the fun. However, because this technology is based on Java, you should first obtain a solid grasp of the Java language and its foundational APIs to improve your chances of succeeding as an Android app developer. After all, you will be busy learning the architecture of an Android app, the various Android-specific APIs, and Android-specific tools. If you do not already know Java fundamentals, you will probably end up with a massive headache from also having to quickly cram those fundamentals into your knowledge base. 

Learn Java for Android Development, Second Edition teaches programmers of any skill level the essential Java language and foundational Java API skills that must be learned to improve the programmer’s chances of succeeding as an Android app developer. Each of the book’s 14 chapters provides an exercise section that gives you the opportunity to reinforce your understanding of the chapter’s material. Answers to the book’s more than 500 exercises are provided in an appendix. A second appendix provides a significant game-oriented Java application, which you can convert into an Android app.

Once you complete this book, you should be ready to dive into beginning Android app development.  Maybe, start that journey with Apress' Beginning Android

What you’ll learn

  • The Java language:  This book provides complete coverage of nearly every pre-Java version 7 language feature (native methods are briefly mentioned but not formally covered). Starting with basic language features (e.g., comments, types, expressions, and statements), you progress to those features related to classes and objects, followed by object-oriented features related to inheritance, polymorphism, and interfaces. You then explore the advanced language features for nested types, packages, static imports, exceptions, assertions, annotations, generics, and enums. Continuing, you investigate strictfp, synchronized, volatile, the enhanced for loop statement, autoboxing/unboxing, and transient fields.
  • Java APIs:  In addition to Object and APIs related to exceptions, you explore Math, StrictMath, BigDecimal, BigInteger, String, StringBuffer/StringBuilder, Boolean, Character, Byte, Short, Integer, Long, Float, Double, Number, the Threads API, System, Runtime, Process, the Collections Framework, the Concurrency Utilities, Date, Formatter, Random, Scanner, the ZIP and JAR APIs, File, RandomAccessFile, stream classes, and writer/reader classes, InetAddress, SocketOptions, Socket, ServerSocket, DatagramSocket, MulticastSocket, URL, URLConnection, URLEncoder, URLDecoder, NetWorkInterface, InterfaceAddress, CookieHandler, CookieManager, CookieStore, CookiePolicy, Buffer, ByteBuffer, CharBuffer, DoubleBuffer,FloatBuffer, IntBuffer, LongBuffer, ShortBuffer, MappedByteBuffer, Channel, WritableByteChannel, ReadableByteChannel,ScatteringByteChannel, GatheringByteChannel, FileChannel, the Regular Expressions API, JDBC, and more.
  • Applying these:  You will learn how to use the JDK’s javac (compiler), java (application launcher), javadoc (Java documentation generator), and jar (Java archive creator, updater, and extractor) tools. You will also receive an introduction to the Eclipse integrated development environment, which is the official standard for developing Android apps.

Who this book is for

This book is for any programmer - including existing Java programmers and Objective-C-based iPhone and iPad programmers - of any skill level who needs to obtain a solid understanding of the Java language and foundational Java APIs before jumping into Android app development.

Table of Contents

1. Getting Started with Java
2. Learning Language Fundamentals
3. Discovering Classes and Objects
4. Discovering Inheritance, Polymorphism, and Interfaces
5. Mastering Advanced Language Features Part 1
6. Mastering Advanced Language Features Part 2
7. Exploring the Basic APIs Part 1
8. Exploring the Basic APIs Part 2
9. Exploring the Collections Framework
10. Exploring Additional Utility APIs
11. Performing Classic I/O
12. Accessing Networks
13. Migrating to New I/O
14. Accessing Databases
A. Appendix A: Solutions to Exercises
B. Appendix B: Four of a Kind
C. Appendix C: Odds and Ends***


***NOTE:  Appendix C is not included in the physical book. Instead, it's distributed as a PDF file that's bundled with the book's code.  As well as covering updated topics from the previous edition of this book (e.g., References, Reflection, and Preferences), this 138-page appendix includes new content.

商品描述(中文翻譯)

Android 開發正夯,許多程式設計師對參與其中充滿興趣。然而,由於這項技術是基於 Java,因此您應該首先牢牢掌握 Java 語言及其基礎 API,以提高您作為 Android 應用程式開發者成功的機會。畢竟,您將忙於學習 Android 應用程式的架構、各種 Android 特有的 API 以及 Android 特有的工具。如果您尚未了解 Java 基礎,您可能會因為需要快速將這些基礎知識塞進您的知識庫而感到頭痛。

《Learn Java for Android Development, Second Edition》教導任何技能水平的程式設計師必須學習的基本 Java 語言和基礎 Java API 技能,以提高程式設計師作為 Android 應用程式開發者成功的機會。本書的 14 章中,每一章都提供了一個練習部分,讓您有機會加強對該章內容的理解。書中超過 500 道練習的答案在附錄中提供。第二個附錄提供了一個重要的遊戲導向 Java 應用程式,您可以將其轉換為 Android 應用程式。

完成本書後,您應該準備好開始進行 Android 應用程式開發。也許可以從 Apress 的《Beginning Android》開始這段旅程。

您將學到的內容:
- **Java 語言:** 本書幾乎全面涵蓋了所有 Java 7 之前的語言特性(本地方法簡要提及但未正式涵蓋)。從基本語言特性(例如,註解、類型、表達式和語句)開始,您將進入與類和物件相關的特性,接著是與繼承、多型和介面相關的物件導向特性。然後,您將探索嵌套類型、包、靜態匯入、例外、斷言、註解、泛型和列舉的進階語言特性。接下來,您將研究 strictfp、synchronized、volatile、增強的 for 迴圈語句、自動裝箱/拆箱和瞬態欄位。

- **Java API:** 除了 Object 和與例外相關的 API,您還將探索 Math、StrictMath、BigDecimal、BigInteger、String、StringBuffer/StringBuilder、Boolean、Character、Byte、Short、Integer、Long、Float、Double、Number、Threads API、System、Runtime、Process、Collections Framework、Concurrency Utilities、Date、Formatter、Random、Scanner、ZIP 和 JAR API、File、RandomAccessFile、流類別以及寫入/讀取類別、InetAddress、SocketOptions、Socket、ServerSocket、DatagramSocket、MulticastSocket、URL、URLConnection、URLEncoder、URLDecoder、NetworkInterface、InterfaceAddress、CookieHandler、CookieManager、CookieStore、CookiePolicy、Buffer、ByteBuffer、CharBuffer、DoubleBuffer、FloatBuffer、IntBuffer、LongBuffer、ShortBuffer、MappedByteBuffer、Channel、WritableByteChannel、ReadableByteChannel、ScatteringByteChannel、GatheringByteChannel、FileChannel、正則表達式 API、JDBC 等等。

- **應用這些知識:** 您將學習如何使用 JDK 的 javac(編譯器)、java(應用程式啟動器)、javadoc(Java 文件生成器)和 jar(Java 檔案創建、更新和提取工具)。您還將獲得對 Eclipse 整合開發環境的介紹,這是開發 Android 應用程式的官方標準。

本書適合對象:
本書適合任何程式設計師,包括現有的 Java 程式設計師和基於 Objective-C 的 iPhone 和 iPad 程式設計師,無論其技能水平如何,都需要在進入 Android 應用程式開發之前,獲得對 Java 語言和基礎 Java API 的扎實理解。

目錄:
1. Java 入門
2. 學習語言基礎
3. 探索類和物件
4. 探索繼承、多型和介面
5. 精通進階語言特性 第 1 部分
6. 精通進階語言特性 第 2 部分
7. 探索基本 API 第 1 部分
8. 探索基本 API 第 2 部分
9. 探索集合框架
10. 探索其他實用 API
11. 執行經典 I/O
12. 訪問網路
13. 遷移到新 I/O
14. 訪問資料庫
A. 附錄 A:練習解答
B. 附錄 B:四種一樣
C. 附錄 C:零零碎碎

***注意:附錄 C 不包含在實體書中。相反,它作為與書籍代碼捆綁的 PDF 文件分發。此 138 頁的附錄涵蓋了本書前一版的更新主題(例如,參考、反射和偏好),並包含新內容。***