Hello, Android: Introducing Google's Mobile Development Platform / Edition 4

Hello, Android: Introducing Google's Mobile Development Platform / Edition 4

by Ed Burnette
ISBN-10:
1680500376
ISBN-13:
9781680500370
Pub. Date:
05/14/2015
Publisher:
Pragmatic Bookshelf
ISBN-10:
1680500376
ISBN-13:
9781680500370
Pub. Date:
05/14/2015
Publisher:
Pragmatic Bookshelf
Hello, Android: Introducing Google's Mobile Development Platform / Edition 4

Hello, Android: Introducing Google's Mobile Development Platform / Edition 4

by Ed Burnette
$36.0 Current price is , Original price is $36.0. You
$36.00 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores
$13.02 
  • SHIP THIS ITEM

    Temporarily Out of Stock Online

    Please check back later for updated availability.

    • Condition: Good
    Note: Access code and/or supplemental material are not guaranteed to be included with used textbook.

Overview

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.

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.

Product Details

ISBN-13: 9781680500370
Publisher: Pragmatic Bookshelf
Publication date: 05/14/2015
Edition description: 4th ed.
Pages: 252
Product dimensions: 7.40(w) x 9.10(h) x 0.50(d)

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 (www.planetandroid.com). 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.

Table of Contents

Acknowledgments xi

Preface xiii

What Makes Android Special? xiii

Who Should Read This Book? xiv

What's in This Book? xv

What's New for Cupcake? xv

What's New for Donut? xvi

Online Resources xvi

Fast-Forward xvii

I Introducing Android 1

1 Quick Start 3

1.1 Installing the Tools 3

1.2 Creating Your First Program 7

1.3 Running on the Emulator 7

1.4 Running on a Real Phone 10

1.5 Fast-Forward» 11

2 Key Concepts 15

2.1 The Big Picture 15

2.2 It's Alive! 20

2.3 Building Blocks 24

2.4 Using Resources 25

2.5 Safe and Secure 26

2.6 Fast-Forward» 27

II Android Basics 29

3 Designing the User Interface 31

3.1 Introducing the Sudoku Example 31

3.2 Designing by Declaration 32

3.3 Creating the Opening Screen 33

3.4 Using Alternate Resources 41

3.5 Implementing an About Box 44

3.6 Applying a Theme 49

3.7 Adding a Menu 50

3.8 Adding Settings 53

3.9 Starting a New Game 55

3.10 Debugging with Log Messages 57

3.11 Debugging with the Debugger 58

3.12 Exiting the Game 58

3.13 Fast-Forward » 59

4 Exploring 2D Graphics 61

4.1 Learning the Basics 61

4.2 Adding Graphics to Sudoku 66

4.3 Handling Input 75

4.4 The Rest of the Story 81

4.5 Making More Improvements 90

4.6 Fast-Forward» 91

5 Multimedia 93

5.1 Playing Audio 93

5.2 Playing Video 99

5.3 Adding Sounds to Sudoku 104

5.4 Fast-Forward » 107

6 Storing Local Data 109

6.1 Adding Options to Sudoku 109

6.2 Continuing an Old Game 111

6.3 Remembering the Current Position 113

6.4 Accessing the Internal File System 115

6.5 Accessing SD Cards 116

6.6 Fast-Forward » 117

III Beyond the Basics 119

7 The Connected World121

7.1 Browsing by Intent 122

7.2 Web with a View 126

7.3 From JavaScript to Java and Back 131

7.4 Using Web Services 138

7.5 Fast-Forward » 149

8 Locating and Sensing 151

8.1 Location, Location, Location 151

8.2 Set Sensors to Maximum 157

8.3 Bird's-Eye View 160

8.4 Fast-Forward » 166

9 Putting SQL to Work 167

9.1 Introducing SQLite 167

9.2 SQL 101 168

9.3 Hello, Database 170

9.4 Data Binding 178

9.5 Using a Content Provider 181

9.6 Implementing a Content Provider 184

9.7 Fast-Forward » 185

10 3D Graphics in OpenGL 187

10.1 Understanding 3D Graphics 187

10.2 Introducing OpenGL 188

10.3 Building an OpenGL Program 189

10.4 Rendering the Scene 191

10.5 Building a Model 195

10.6 Lights, Camera 198

10.7 Action! 201

10.8 Applying Texture 201

10.9 Peekaboo 205

10.10 Measuring Smoothness 206

10.11 Fast-Forward » 207

IV Appendixes 209

A Java vs. the Android Language and APIs 211

A.1 Language Subset 211

A.2 Standard Library Subset 213

A.3 Third-Party Libraries 214

B Hello, Widget 215

B.1 Creating Your First Widget 215

B.2 Calling All Widgets! 217

B.3 Stretch to Fit 218

B.4 The Rest of the Story 219

B.5 Running the Widget 220

B.6 Keeping Up to Date 222

B.7 Go Wild 224

C Publishing to the Android Market 225

C.1 Preparing 225

C.2 Signing 228

C.3 Publishing 229

C.4 Updating 231

C.5 Closing thoughts 233

D Bibliography 233

Index 235

From the B&N Reads Blog

Customer Reviews