Beginning Android Programming: Develop and Design

Book description

In this straightforward guide, Android programming experts Chris Haseman and Kevin Grant show you how to use the powerful set of Android tools to begin writing the next generation of Android applications.

After a tour of how to install and configure the Android Studio and Eclipse, you jump right in, building your first Android project. The pair demonstrate how to use the major building blocks for creating an intuitive and good-looking interface. Next, they shows you how to retrieve data and use lists to display data. Chris and Kevin then explore how to use services—important, and often under-utilized, components of the Android platform. The two examine how to handle media and location services before showing you how to write applications for the diverse Android ecosystem and—finally—publish your application.

Table of contents

  1. Title Page
  2. Copyright Page
  3. Dedication Page
  4. Acknowledgments
  5. About the Authors
  6. Contents
  7. Introduction
    1. Who This Book Is For
    2. Who This Book Is Not For
    3. How You Will Learn
    4. What You Will Learn
  8. Welcome to Android
  9. Chapter 1. Getting Started with Android
    1. Exploring Android Development Environments
    2. Getting Everything Installed
    3. Configuring Devices
    4. Creating a New Android Project
    5. Running Your New Project
    6. Troubleshooting the Emulator
    7. Wrapping Up
  10. Chapter 2. Exploring the Application Basics
    1. The Files
    2. The Activity Class
    3. The Intent Class
    4. The Application Class
    5. Wrapping Up
  11. Chapter 3. Creating User Interfaces
    1. The View Class
    2. Resource Management
    3. Layout Management
    4. Wrapping Up
  12. Chapter 4. Acquiring Data
    1. The Main Thread
    2. Getting Off the Main Thread
    3. The AsyncTask
    4. The IntentService
    5. Wrapping Up
  13. Chapter 5. Adapters, List Views, and Lists
    1. Two Pieces to Each List
    2. A Main Menu
    3. Complex List Views
    4. How Do These Objects Interact?
    5. Wrapping Up
  14. Chapter 6. Background Services
    1. What Is a Service?
    2. Communication
    3. Wrapping Up
  15. Chapter 7. Many Devices, One Application
    1. Uncovering the Secrets of the res/ Folder
    2. Limiting Access to Your App to Devices That Work
    3. Handling Code in Older Android Versions
    4. Wrapping Up
  16. Chapter 8. Movies and Music
    1. Movies
    2. Music
    3. Longer-Running Music Playback
    4. Wrapping Up
  17. Chapter 9. Determining Locations and Using Maps
    1. Location Basics
    2. Show Me the Map!
    3. Wrapping Up
  18. Chapter 10. Tablets, Fragments, and Action Bars, Oh My
    1. Fragments
    2. The Action Bar
    3. Wrapping Up
  19. Chapter 11. Advanced Navigation
    1. The View Pager
    2. The Navigation Drawer
    3. Wrapping Up
  20. Chapter 12. Publishing Your Application
    1. Packaging and Versioning
    2. Packaging and Signing
    3. Submitting Your Build
    4. Wrapping Up
  21. Chapter 13. Gradle, the New Build System
    1. Anatomy of a Gradle File
    2. Wrapping Up
  22. Index

Product information

  • Title: Beginning Android Programming: Develop and Design
  • Author(s):
  • Release date: December 2013
  • Publisher(s): Peachpit Press
  • ISBN: 9780133572681