Book description
Get thoroughly up to speed on Android programming, and learn how to create up-to-date user experiences for both handsets and tablets. With this book's extensively revised second edition, you'll focus on Android tools and programming essentials, including best practices for using Android 4 APIs. If you're experienced with Java or Objective-C, you'll gain the knowledge necessary for building well-engineered applications.
Programming Android is organized into four parts:
- Part One helps programmers with some Java or iOS experience get off to a fast start with the Android SDK and Android programming basics.
- Part Two delves into the Android framework, focusing on user interface and graphics class hierarchies, concurrency, and databases. It's a solid foundation for understanding of how the most important parts of an Android application work.
- Part Three features code skeletons and patterns for accelerating the development of apps that use web data and Android 4 user interface conventions and APIs.
- Part Four delivers practical coverage of Android's multimedia, search, location, sensor, and account APIs, plus the Native Development Kit, enabling developers to add advanced capabilities.
This updated edition of Programming Android focuses on the knowledge and developer priorities that are essential for successful Android development projects.
Publisher resources
Table of contents
- Programming Android
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- Preface
-
I. Tools and Basics
-
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
-
2. Java for Android
- Android Is Reshaping Client-Side Java
- The Java Type System
- Scope
- Idioms of Java Programming
- 3. The Ingredients of an Android Application
-
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
- 5. Eclipse for Android Software Development
-
1. Installing the Android SDK and Prerequisites
-
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
- 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
-
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 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
-
IV. Advanced Topics
- 14. Search
- 15. Location and Mapping
- 16. Multimedia
- 17. Sensors, NFC, Speech, Gestures, and Accessibility
- 18. Communication, Identity, Sync, and Social Media
- 19. The Android Native Development Kit (NDK)
- Index
- About the Authors
- Colophon
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- Copyright
Product information
- Title: Programming Android, 2nd Edition
- Author(s):
- Release date: September 2012
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449358471
You might also like
book
Programming Android
What does it take to build well-engineered Android applications? Explore Android's core building blocks and APIs …
book
Android System Programming
Build, customize, and debug your own Android system About This Book Master Android system-level programming by …
book
Android Cookbook, 2nd Edition
Jump in and build working Android apps with the help of more than 230 tested recipes. …
book
Learning Android, 2nd Edition
Want to build apps for Android devices? This book is the perfect way to master the …