Android編程(第二版,影印版)
出版時間:2013年06月
頁數:564
“我將把這本書推薦給所有不僅想要了解如何為Android編程,而且想要更好地理解它的體系的人?!?br />
——Etienne Savard
Amazon.com上對于第一版的評論
“這本書沒有停留在基本知識上,它對所有涉及的話題都提供了深入的見解。它還特別著重介紹了Android的數據架構如何為使用web服務的應用提供模型,這個模型改善了界面性能和數據呈現(xiàn)。”
——Ajit Jaokar
Amazon.com上對于第一版的評論
快速上手Android編程,學習如何創(chuàng)建適合于手持設備和平板電腦的最新用戶體驗。本次第二版進行了大范圍的修訂,從中你可以了解到Android工具和編程要點,包括使用Android 4 API的最佳實踐。只要你熟悉Java或者Objective-C,你就能夠搭建精心設計的應用。
《Android編程》第二版由如下四部分組成:
· 第一部分幫助那些具備基本Java或者iOS經驗的程序員快速上手Android SDK和Android編程基礎知識。
· 第二部分探討了Android框架,著重于用戶界面、圖形類層次結構、并行和數據庫。它是理解Android應用最重要部分如何工作的基石。
· 第三部分主要講解了代碼骨架和模式,以加速使用web數據、Android 4用戶界面規(guī)則和API的應用開發(fā)。
· 第四部分的實例涵蓋了Android的多媒體、搜索、位置、傳感器和賬號API以及本地代碼開發(fā)包,從而讓開發(fā)者可以加入高級特性。
《Android編程》的本次修訂版本著重于開發(fā)成功Android項目所必須具備的知識和要點。
- Chapter 1: Installing the Android SDK and Prerequisites
- Installing the Android SDK and Prerequisites
- Test Drive: Confirm That Your Installation Works
- Components of the SDK
- Keeping Up-to-Date
- Example Code
- On Reading Code
- Chapter 2: Java for Android
- Android Is Reshaping Client-Side Java
- The Java Type System
- Scope
- Idioms of Java Programming
- Chapter 3: The Ingredients of an Android Application
- Traditional Programming Models Compared to Android
- Activities, Intents, and Tasks
- Other Android Components
- Component Life Cycles
- Static Application Resources and Context
- The Android Application Runtime Environment
- Extending Android
- Concurrency in Android
- Serialization
- Chapter 4: Getting Your Application into Users’ Hands
- Application Signing
- Placing an Application for Distribution in the Android Market
- Alternative Distribution
- Google Maps API Keys
- Specifying API-Level Compatibility
- Compatibility with Many Kinds of Screens
- Chapter 5: Eclipse for Android Software Development
- Eclipse Concepts and Terminology
- Eclipse Views and Perspectives
- Java Coding in Eclipse
- Eclipse and Android
- Preventing Bugs and Keeping Your Code Clean
- Eclipse Idiosyncrasies and Alternatives
- About the Android Framework
- Chapter 6: Building a View
- Android GUI Architecture
- Assembling a Graphical Interface
- Wiring Up the Controller
- The Menu and the Action Bar
- View Debugging and Optimization
- Chapter 7: Fragments and Multiplatform Support
- Creating a Fragment
- Fragment Life Cycle
- The Fragment Manager
- Fragment Transactions
- The Support Package
- Fragments and Layout
- Chapter 8: Drawing 2D and 3D Graphics
- Rolling Your Own Widgets
- Bling
- Chapter 9: Handling and Persisting Data
- Relational Database Overview
- SQLite
- The SQL Language
- SQL and the Database-Centric Data Model for Android Applications
- The Android Database Classes
- Database Design for Android Applications
- Using the Database API: MJAndroid
- A Skeleton Application for Android
- Chapter 10: A Framework for a Well-Behaved Application
- Visualizing Life Cycles
- Visualizing the Fragment Life Cycle
- The Activity Class and Well-Behaved Applications
- Life Cycle Methods of the Application Class
- Chapter 11: Building a User Interface
- Top-Level Design
- Visual Editing of User Interfaces
- Starting with a Blank Slate
- Laying Out the Fragments
- Folding and Unfolding a Scalable UI
- Making Activity, Fragment, Action Bar, and Multiple Layouts Work Together
- The Other Activity
- Chapter 12: Using Content Providers
- Understanding Content Providers
- Defining a Provider Public API
- Writing and Integrating a Content Provider
- File Management and Binary Data
- Android MVC and Content Observation
- A Complete Content Provider: The SimpleFinchVideoContentProvider Code
- Declaring Your Content Provider
- Chapter 13: A Content Provider as a Facade for a RESTful Web Service
- Developing RESTful Android Applications
- A “Network MVC”
- Summary of Benefits
- Code Example: Dynamically Listing and Caching YouTube Video Content
- Structure of the Source Code for the Finch YouTube Video Example
- Stepping Through the Search Application
- Step 1: Our UI Collects User Input
- Step 2: Our Controller Listens for Events
- Step 3: The Controller Queries the Content Provider with a managedQuery on the Content Provider/Model
- Step 4: Implementing the RESTful Request
- Advanced Topics
- Chapter 14: Search
- Search Interface
- Query Suggestions
- Chapter 15: Location and Mapping
- Location-Based Services
- Mapping
- The Google Maps Activity
- The MapView and MapActivity
- Working with MapViews
- MapView and MyLocationOverlay Initialization
- Pausing and Resuming a MapActivity
- Controlling the Map with Menu Buttons
- Controlling the Map with the Keypad
- Location Without Maps
- StreetView
- Chapter 16: Multimedia
- Audio and Video
- Playing Audio and Video
- Recording Audio and Video
- Stored Media Content
- Chapter 17: Sensors, NFC, Speech, Gestures, and Accessibility
- Sensors
- Near Field Communication (NFC)
- Gesture Input
- Accessibility
- Chapter 18: Communication, Identity, Sync, and Social Media
- Account Contacts
- Authentication and Synchronization
- Bluetooth
- Chapter 19: The Android Native Development Kit (NDK)
- Native Methods and JNI Calls
- The Android NDK
- Native Libraries and Headers Provided by the NDK
- Building Your Own Custom Library Modules
- Native Activities
書名:Android編程(第二版,影印版)
國內出版社:東南大學出版社
出版時間:2013年06月
頁數:564
書號:978-7-5641-4201-8
原版書書名:Programming Android, 2nd Edition
原版書出版商:O'Reilly Media
Zigurd Mednieks
Zigurd Mednieks是領先的OEM、企業(yè)和創(chuàng)建基于Android系統(tǒng)和軟件的創(chuàng)業(yè)咨詢顧問。在此之前,他是D2 Technologies的首席架構師,D2 Technologies是Voice over IP (VoIP)的技術提供商。在D2 Technologies,他帶領工程和產品定義工作,把通信和社交媒體結合到專用的嵌入式系統(tǒng)和Android平臺上。
Laird Dornin
Laird Dornin是一名移動開發(fā)架構師,在Java、Android、J2ME、SavaJe和WebKit瀏覽器庫方面有豐富的經驗。他是Sun Microsystems的J2SE開發(fā)團隊成員,是Java RMI和Jini的技術專家。他目前是一家大型無線運營商的高級工程師,為該運營商的開發(fā)者社區(qū)提供Android架構指南和Network API支持。
G. Blake Meike
G. Blake Meike是一個經驗豐富的開發(fā)人員,在移動和服務端平臺構建Java應用方面有豐富的經驗。
Masumi Nakamura
Masumi Nakamura(中村真澄)是Placester公司工程副總裁和TechStars的教師,有超過15年的軟件行業(yè)經驗,他熟悉軟件的各方面,從移動開發(fā)到擴展大規(guī)模后臺系統(tǒng),而且他還在運營Paypal公司的一個數據科學團隊。
The animal on the cover of Programming Android, Second Edition is a pine grosbeak (Pinicola enucleator). A member of the finch family, these largest of the so-called “winter finches” can be found throughout the coniferous forests of the northern hemisphere: in Alaska, Canada, Scandinavia, and Siberia. More rarely, during the winter some individuals stray as far south as the upper Midwest and New England portions of the United States, and on occasion even into temperate Europe.
Adult pine grosbeaks are rather distinctive looking. Both males and females have long forked black tails and black wings with white wing bars. The remainder of a male’s plumage is predominantly red, while females display an olive color on the head and rump and gray on the back and underside. Conversely, colors on young pine grosbeaks are noticeably more subdued.
Pine grosbeaks feed mostly on vegetable matter, including the buds, seeds, and fruit of various varieties of tree, though they will also eat insects, and in fact prefer to feed such to their young. Interestingly, breeding adults will develop pouches in the floor of its mouth specifically designed to carry this food back to the nest.