O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Beginning Android Programming with Android Studio, Fourth Edition

Book Description

A hands-on introduction to the latest release of the Android OS and the easiest Android tools for developers

As the dominant mobile platform today, the Android OS is a powerful and flexible platform for mobile device. The new Android 7 release (New York Cheesecake) boasts significant new features and enhancements for both smartphone and tablet applications. This step-by-step resource takes a hands-on approach to teaching you how to create Android applications for the latest OS and the newest devices, including both smartphones and tablets.

  • Shows you how to install, get started with, and use Android Studio 2 - the simplest Android developer tool ever for beginners
  • Addresses how to display notifications, create rich user interfaces, and use activities and intents
  • Reviews mastering views and menus and managing data
  • Discusses working with SMS 
  • Looks at packaging and publishing applications to the Android market

Beginning Android Programming with Android Studio starts with the basics and goes on to provide you with everything you need to know to begin to successfully develop your own Android applications.

Table of Contents

  1. Cover
  2. Title Page
  3. Copyright
  4. Dedication
  5. Credits
  6. About the Author
  7. About the Technical Editor
  8. Acknowledgments
  9. Introduction
    1. Who This Book Is For
    2. What This Book Covers
    3. How This Book Is Structured
    4. What You Need to Use This Book
    5. Conventions
    6. Source Code
    7. Errata
    8. P2P.wrox.com
  10. Chapter 1: Getting Started with Android Programming
    1. What Is Android?
    2. Obtaining the Required Tools
    3. Launching Your First Android Application
    4. Summary
  11. Chapter 2: Using Android Studio for Android Development
    1. Exploring the IDE
    2. Using Code Completion
    3. Debugging Your Application
    4. Publishing Your Application
    5. Summary
  12. Chapter 3: Activities, Fragments, and Intents
    1. Understanding Activities
    2. Linking Activities Using Intents
    3. Fragments
    4. Displaying Notifications
    5. Summary
  13. Chapter 4: Getting to Know the Android User Interface
    1. Understanding the Components of a Screen
    2. Adapting to Display Orientation
    3. Managing Changes to Screen Orientation
    4. Utilizing the Action Bar
    5. Creating the User Interface Programmatically
    6. Listening for UI Notifications
    7. Summary
  14. Chapter 5: Designing Your User Interface with Views
    1. Using Basic Views
    2. Using Picker Views
    3. Using List Views to Display Long Lists
    4. Understanding Specialized Fragments
    5. Summary
  15. Chapter 6: Displaying Pictures and Menus with Views
    1. Using Image Views to Display Pictures
    2. Using Menus with Views
    3. Using WebView
    4. Summary
  16. Chapter 7: Data Persistence
    1. Saving and Loading User Preferences
    2. Persisting Data to Files
    3. Creating and Using Databases
    4. Summary
  17. Chapter 8: Content Providers
    1. Sharing Data in Android
    2. Using a Content Provider
    3. Creating Your Own Content Providers
    4. Using the Content Provider
    5. Summary
  18. Chapter 9: Messaging
    1. SMS Messaging
    2. Sending Email
    3. Summary
  19. Chapter 10: Location-Based Services
    1. Displaying Maps
    2. Getting Location Data
    3. Monitoring a Location
    4. Summary
  20. Chapter 11: Networking
    1. Consuming Web Services Using HTTP
    2. Consuming Json Services
    3. Summary
  21. Chapter 12: Developing Android Services
    1. Creating Your Own Services
    2. Establishing Communication Between a Service and an Activity
    3. Binding Activities to Services
    4. Understanding Threading
    5. Summary
  22. Appendix: Answers to Exercises
    1. Chapter 1 Answers
    2. Chapter 2 Answers
    3. Chapter 3 Answers
    4. Chapter 4 Answers
    5. Chapter 5 Answers
    6. Chapter 6 Answers
    7. Chapter 7 Answers
    8. Chapter 8 Answers
    9. Chapter 9 Answers
    10. Chapter 10 Answers
    11. Chapter 11 Answers
    12. Chapter 12 Answers
  23. End User License Agreement