Preface
Part I Tools and Basics
1 Installing the Android SDK and Prerequisites
Installing the Android SDK and Prerequisites
The Iava Development Kit 0DK
The Eclipse Integrated Development EnvironmentIDE
The Android SDK
Adding Build Targets to the SDK
The Android Developer ToolsADTPlug—in for Eclipse
Test Drive:Confirm That Your Installation Works
Making an Android Project
Making an Android Virtual DeviceAVD
Running a Program on an AVD
Running a Program on an Android Device
Troubleshootin2 SDK Problems:NO Build Targets
Components of the SDK
The Android Debug Bridgeadb
The Dalvik Debug Monitor ServerDDMS
Components of the ADT Eclipse Plug-in
Android Virtual Devices
0ther SDK Tools
Keeping Up-to-Date
Keeping the Android SDK Up-tO-Date
Keeping Eclipse and the ADT Plug-in Up-tO-Date
Keeping the JDK Up-tO-Date
Example Code
SDK Example Code
Example Code from This Book
On Reading Code
2 JavaforAndroid
Android Is Reshaping Client—Side Java
The Java Type System
Primitive Types
Objects and Classes
Object Creation
The Object Class and Its Methods
Objects,Inheritance,and Polymorphism
Final and Static Declarations
Abstract Classes
Interfaces
Exceptions
The Tava Collections Framework
Garbage Collection
Scope
Java Packages
Access Modifiers and Encapsulation
Idioms of Java Programming
Type Safety inJava
Using Anonymous Classes
Modular Programming in Java
Basic Multithreaded Concurrent Programming in Java
Svnchronization and Thread Safety
Thread Control with waitand notifyMethods
Svnchronization and Data Structures
3.The Ingredients ofan Android Application
2.JavaforAndroid
3.The Ingredients ofan Android Application
4.Getting Your Application into Users’Hands
5.Eclipse for Android Software Development
Part II.About the Android Framework
6.Building a View
7.Fragments and Multiplatform Support
8.Drawing 2D and 3D Graphics
9.Handling and Persisting Data
Part III.A Skeleton Application for Android
10.A Framework for a Well-Behaved Application
11.Building a User Interface
12.Using Content Providers
13.A Content Provider as a Facade for a RESTfuI Web Service
Part IV.Advanced Topics
14.Search
15.Location and Mapping
16.Multimedia
17.Sensors|NFCISpeechfGesturesfandAccessibility
18.Communication l Identity|Sync l and Social Media
19.The Android Native Development KitN DK
Index