Learn Java for Android Development, 2/e (Paperback)

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、流類和writer/reader類、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、Regular Expressions API、JDBC等。
- 應用這些知識:你將學習如何使用JDK的javac(編譯器)、java(應用程式啟動器)、javadoc(Java文檔生成器)和jar(Java存檔創建器、更新器和提取器)工具。你還將介紹Eclipse集成開發環境,這是開發Android應用程式的官方標準。

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