Preface; How This Book Is Organized; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments;Tools and Basics;
Chapter 1: Installing the Android SDK and Prerequisites;
1.1 Installing the Android SDK and Prerequisites;
1.2 Test Drive: Confirm That Your Installation Works;
1.3 Components of the SDK;
1.4 Keeping Up-to-Date;
1.5 Example Code;
1.6 On Reading Code;
Chapter 2: Java for Android;
2.1 Android Is Reshaping Client-Side Java;
2.2 The Java Type System;
2.3 Scope;
2.4 Idioms of Java Programming;
Chapter 3: The Ingredients of an Android Application;
3.1 Traditional Programming Models Compared to Android;
3.2 Activities, Intents, and Tasks;
3.3 Other Android Components;
3.4 Component Life Cycles;
3.5 Static Application Resources and Context;
3.6 The Android Application Runtime Environment;
3.7 Extending Android;
3.8 Concurrency in Android;
3.9 Serialization;
Chapter 4: Getting Your Application into Users'' Hands;
4.1 Application Signing;
4.2 Placing an Application for Distribution in the Android Market;
4.3 Alternative Distribution;
4.4 Google Maps API Keys;
4.5 Specifying API-Level Compatibility;
4.6 Compatibility with Many Kinds of Screens;
Chapter 5: Eclipse for Android Software Development;
5.1 Eclipse Concepts and Terminology;
5.2 Eclipse Views and Perspectives;
5.3 Java Coding in Eclipse;
5.4 Eclipse and Android;
5.5 Preventing Bugs and Keeping Your Code Clean;
5.6 Eclipse Idiosyncrasies and Alternatives;About the Android Framework;
Chapter 6: Building a View;
6.1 Android GUI Architecture;
6.2 Assembling a Graphical Interface;
6.3 Wiring Up the Controller;
6.4 The Menu and the Action Bar;
6.5 View Debugging and Optimization;
Chapter 7: Fragments and Multiplatform Support;
7.1 Creating a Fragment;
7.2 Fragment Life Cycle;
7.3 The Fragment Manager;
7.4 Fragment Transactions;
7.5 The Support Package;
7.6 Fragments and Layout;
Chapter 8: Drawing 2D and 3D Graphics;
8.1 Rolling Your Own Widgets;
8.2 Bling;
Chapter 9: Handling and Persisting Data;
9.1 Relational Database Overview;
9.2 SQLite;
9.3 The SQL Language;
9.4 SQL and the Database-Centric Data Model for Android Applications;
9.5 The Android Database Classes;
9.6 Database Design for Android Applications;
9.7 Using the Database API: MJAndroid;A Skeleton Application for Android;
Chapter 10: A Framework for a Well-Behaved Application;
10.1 Visualizing Life Cycles;
10.2 Visualizing the Fragment Life Cycle;
10.3 The Activity Class and Well-Behaved Applications;
10.4 Life Cycle Methods of the Application Class;
Chapter 11: Building a User Interface;
11.1 Top-Level Design;
11.2 Visual Editing of User Interfaces;
11.3 Starting with a Blank Slate;
11.4 Laying Out the Fragments;
11.5 Folding and Unfolding a Scalable UI;
11.6 Making Activity, Fragment, Action Bar, and Multiple Layouts Work Together;
11.7 The Other Activity;
Chapter 12: Using Content Providers;
12.1 Understanding Content Providers;
12.2 Defining a Provider Public API;
12.3 Writing and Integrating a Content Provider;
12.4 File Management and Binary Data;
12.5 Android MVC and Content Observation;
12.6 A Complete Content Provider: The SimpleFinchVideoContentProvider Code;
12.7 Declaring Your Content Provider;
Chapter 13: A Content Provider as a Facade for a RESTful Web Service;
13.1 Developing RESTful Android Applications;
13.2 A "Network MVC";
13.3 Summary of Benefits;
13.4 Code Example: Dynamically Listing and Caching YouTube Video Content;
13.5 Structure of the Source Code for the Finch YouTube Video Example;
13.6 Stepping Through the Search Application;
13.7 Step
1: Our UI Collects User Input;
13.8 Step
2: Our Controller Listens for Events;
13.9 Step
3: The Controller Queries the Content Provider with a managedQuery on the Content Provider/Model;
13.10 Step
4: Implementing the RESTful Request;Advanced Topics;
Chapter 14: Search;
14.1 Search Interface;
14.2 Query Suggestions;
Chapter 15: Location and Mapping;
15.1 Location-Based Services;
15.2 Mapping;
15.3 The Google Maps Activity;
15.4 The MapView and MapActivity;
15.5 Working with MapViews;
15.6 MapView and MyLocationOverlay Initialization;
15.7 Pausing and Resuming a MapActivity;
15.8 Controlling the Map with Menu Buttons;
15.9 Controlling the Map with the Keypad;
15.10 Location Without Maps;
15.11 StreetView;
Chapter 16: Multimedia;
16.1 Audio and Video;
16.2 Playing Audio and Video;
16.3 Recording Audio and Video;
16.4 Stored Media Content;
Chapter 17: Sensors, NFC, Speech, Gestures, and Accessibility;
17.1 Sensors;
17.2 Near Field Communication (NFC);
17.3 Gesture Input;
17.4 Accessibility;
Chapter 18: Communication, Identity, Sync, and Social Media;
18.1 Account Contacts;
18.2 Authentication and Synchronization;
18.3 Bluetooth;
Chapter 19: The Android Native Development Kit (NDK);
19.1 Native Methods and JNI Calls;
19.2 The Android NDK;
19.3 Native Libraries and Headers Provided by the NDK;
19.4 Building Your Own Custom Library Modules;
19.5 Native Activities;Colophon;