Home > Store

Android for Programmers: An App-Driven Approach, 2nd Edition

Register your product to gain access to bonus material or receive a coupon.

Android for Programmers: An App-Driven Approach, 2nd Edition

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2014
  • Edition: 2nd
  • Book
  • ISBN-10: 0-13-357092-4
  • ISBN-13: 978-0-13-357092-2

The professional programmer’s Deitel® guide to smartphone and tablet app development using Android 4.3 and 4.4, the Eclipse-based Android Development Tools and the new Android Studio

Billions of apps have been downloaded from Google Play™! This book gives you everything you’ll need to start developing great Android apps quickly and getting them published on Google Play™. The book uses an app-driven approach–each new technology is discussed in the context of seven fully tested Android apps, complete with syntax coloring, code highlighting, code walkthroughs and sample outputs. Apps you’ll develop include:

  • Welcome App
  • Cannon Game
  • Tip Calculator
  • Doodlz
  • Twitter® Searches
  • Address Book
  • Flag Quiz

The first-generation Android phones were released in October 2008. By October 2013, a Strategy Analytics report showed that Android had 81.3% of the global smartphone market share, compared to 13.4% for Apple, 4.1% for Microsoft and 1% for Blackberry (bit.ly/1aqIZXf). Billions of apps have been downloaded from Google Play. There are now more than one billion activated Android devices worldwide and more than 1.5 million Android devices are being activated daily (venturebeat.com/2013/09/03/android-hits-1bactivations-and-will-be-called-kitkat-in-nextversion). The opportunities for Android app developers are enormous.

This book presents leading-edge computing technologies for professional software developers. At the heart of the book is the Deitel “app-driven approach”–concepts are presented in the context of complete working Android apps, rather than using code snippets. The introduction and app test drives at the beginning of each chapter show one or more sample executions. The book’s source code is available at www.deitel.com/books/androidfp2.

The apps in this book were carefully designed to introduce you to key Android features and APIs. You’ll quickly learn everything you need to start building Android apps–beginning with a testdrive of the Doodlz app in Chapter 1, then building your first app in Chapter 2. By the time you reach Chapter 9, you’ll be ready to create your own apps for submission to Google Play and other app marketplaces. You’ll master the Google Play submission process, including uploading your apps, deciding whether to sell your apps or offer them for free, and marketing them using in-app advertising, social media, Internet public relations and more.

Practical, example-rich coverage of:

  • Android 4.3 and 4.4
  • Android Development Tools, Android Studio
  • Supporting Various Screen Sizes/Resolutions
  • Accessibility, Internationalization, Graphics
  • Activities, Fragments, Intents, Preferences
  • GUIs, Layouts, Menus, Resource Files, Lists, Adapters, Events, Touch/Gesture Processing
  • Immersive Mode, Printing Framework, PrintHelper
  • Assets (Images, Audio), View Animation
  • Threading, Collections, SQLite Database
  • Social sharing via implicit intents
  • Google Play™, App Publishing, Pricing, Monetization, Marketing, In-App Advertising, In-App Billing and more.

Visit www.deitel.com

  • Download code examples
  • For information on Deitel’s Dive Into® Series programming training courses delivered at organizations worldwide visit www.deitel.com/training or write to

Downloads

Downloads

Download the source code files from Android for Programmers here.

Extras

Author's Site

Please visit the author's site here

Sample Content

Table of Contents

Preface xiv

Before You Begin xxiii

Chapter 1: Introduction to Android                  1

1.1 Introduction   2

1.2 Android–The World’s Leading Mobile Operating System   3

1.3 Android Features   3

1.4 Android Operating System   7

1.5 Downloading Apps from Google Play   11

1.6 Packages   12

1.7 Android Software Development Kit (SDK)   13

1.8 Object-Oriented Programming: A Quick Refresher   16

1.9 Test-Driving the Doodlz App in an Android Virtual Device (AVD)   19

1.10 Building Great Android Apps   30

1.11 Android Development Resources   32

1.12 Wrap-Up   34

Chapter 2: Welcome App          35

2.1 Introduction   36

2.2 Technologies Overview   37

2.3 Creating an App   38

2.4 Android Developer Tools Window   44

2.5 Building the App’s GUI with the Graphical Layout Editor   48

2.6 Running the Welcome App   56

2.7 Making Your App Accessible   57

2.8 Internationalizing Your App   59

2.9 Wrap-Up   63

Chapter 3: Tip Calculator App         64

3.1 Introduction   65

3.2 Test-Driving the Tip Calculator App   66

3.3 Technologies Overview   67

3.4 Building the App’s GUI   70

3.5 Adding Functionality to the App   79

3.6 AndroidManifest.xml   87

3.7 Wrap-Up   88

Chapter 4: Twitter® Searches App           89

4.1 Introduction   90

4.2 Test-Driving the App   91

4.3 Technologies Overview   97

4.4 Building the App’s GUI   100

4.5 Building the MainActivity Class   109

4.6 AndroidManifest.xml   124

4.7 Wrap-Up   124

Chapter 5: Flag Quiz App         125

5.1 Introduction   126

5.2 Test-Driving the Flag Quiz App   128

5.3 Technologies Overview   132

5.4 Building the GUI and Resource Files   136

5.5 MainActivity Class   147

5.6 QuizFragment Class   153

5.7 SettingsFragment Class   165

5.8 SettingsActivity Class  

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.