Google Android dominates the mobile market, and by targeting Android, your apps can run on most of the phones and tablets in the world. This new fourth edition of the #1 book for learning Android covers all modern Android versions from Android 4.1 through Android 5.0. Freshly added material covers new Android features such as Fragments and Google Play Services. Android is a platform you can’t afford not to learn, and this book gets you started.

Printed in full color.

Buy Now

Select a DRM-free Format:

In Stock
Buy the eBook and get these DRM-free formats delivered immediately:
  • epub (for iPhone/iPad, Android, eReaders)
  • mobi (for Kindle)
  • PDF
We can automatically send them to your Kindle, and your Dropbox. (You'll need to log in to enable these options.)

This title is currently available in Beta. Buy the eBook now, and you'll be able to download successive releases of the eBook as the authors add material and correct mistakes. You'll get the final eBook when the book is finished.

You'll also be able to buy the paper book at a substantial discount when it's released (we're currently estimating 2015-05-01, but these dates can change).


About this Book

  • 225 pages (est)
  • Published:
  • Release: B5.0 (2015-03-11)
  • ISBN: 978-1-68050-037-0

Android is a software toolkit for mobile phones and tablets, created by Google. It’s inside more than a billion devices, making Android the number one platform for application developers. Your own app could be running on all those devices!

Getting started developing with Android is easy. You don’t even need access to an Android phone, just a computer where you can install the Android SDK and the emulator that comes with it. Within minutes, Hello, Android gets you creating your first working application: Android’s version of “Hello, World.” From there, you’ll build up a more substantial example: an Ultimate Tic-Tac-Toe game. By gradually adding features to the game, you’ll learn about many aspects of Android programming, such as creating animated user interfaces, playing music and sound effects, building location-based services (including GPS and cell-tower triangulation), and accessing web services. You’ll also learn how to publish your applications to the Google Play Store.

This fourth edition of the bestselling Android classic has been revised for Android 4.1-4.3 (Jelly Bean), 4.4 (KitKat), and Android 5.0 (Lollipop). Topics have been streamlined and simplified based on reader feedback, and every page and example has been reviewed and updated for compatibility with the latest versions of Android.

If you’d rather be coding than reading about coding, this book is for you.

What You Need

You just need a computer to get started. The book explains how to download Java and Android Studio.

User Level

Contents and Extracts

This book is currently in beta, so the contents and extracts will change as the book is developed.

  • Introducing Android
    • Quick Start
      • Installing the Tools
      • Creating Your First Program
      • Running on the Android Emulator
      • Running on a Real Device
      • Additional Steps
      • Fast-Forward >>
    • Key Concepts excerpt
      • The Big Picture
      • Building Blocks
      • It’s Alive!
      • Safe and Secure
      • Fast-Forward >>
  • Let’s Play a Game
    • Opening Moves
      • Creating the Tic-Tac-Toe Example
      • Designing in XML
      • Filling In the Code
      • Adding an About Box
      • Defining Resources
      • Debugging
      • Fast-Forward >>
    • Defining the Game Interface
      • The Game Board
      • Starting a Game
      • Controlling the Game
      • Super-Size Me
      • Fast Forward >>
    • Ghost in the Machine
      • Introduction to AI
      • Simulating thought
      • Making your move
      • Fast Forward >>
    • Adding Sounds
      • The Sound of Music
      • Music To Play By
      • It Goes Ding When There’s Stuff
      • Fast Forward >>
    • Adding Animation
      • The Never-Ending Scroller
      • Bouncing Tiles
      • Fast Forward >>
  • Thinking Outside the Box
    • Write Once, Test Everywhere
      • Gentlemen, Start Your Emulators
      • Building for Multiple Versions
      • Evolving with Android APIs
      • All Screens Great and Small
      • Alternative Resources
      • Fast-Forward >>
    • Publishing to the Play Store
  • Beyond the Basics
    • A Window to the World
      • Browsing by Intent
      • Web with a View
      • From JavaScript to Java and Back
      • Fast-Forward >>
    • Calling Web Services excerpt
      • Using Web Services
      • The Suggest Example
      • Threading the Needle
      • Loose Ends
      • The Suggest Task
      • Fast-Forward >>
    • Using Google Play Services excerpt
      • How it works
      • Using Location Services
      • Fast Forward >>
    • Putting SQL to Work
      • Introducing SQLite
      • SQL 101
      • Hello, Database
      • Data Binding
      • Using a ContentProvider
      • Implementing a ContentProvider
      • Using Loaders
      • Closing Thoughts
  • Appendixes
    • Java vs. the Android Language and APIs
      • Language Subset
      • Standard Library Subset
      • Third-Party Libraries
    • Bibliography

About the Author

Ed Burnette is a software industry veteran with more than 30 years of experience as a programmer, author, and analyst. He is a founding member and senior researcher at the SAS Advanced Server Research group, and is the creator of Planet Android. Ed has authored numerous technical articles and books, including Google Web Toolkit: Taking the Pain out of Ajax and Eclipse IDE Pocket Guide. In his copious spare time, you can often find him playing video games with his two sons at their home in central North Carolina.