Home > Store

Android Developer's Cookbook, The: Building Applications with the Android SDK, Rough Cuts, 2nd Edition

Rough Cuts

  • Available to Safari Subscribers
  • About Rough Cuts
  • Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.

Not for Sale

Description

  • Copyright 2013
  • Dimensions: 7" x 9"
  • Pages: 400
  • Edition: 2nd
  • Rough Cuts
  • ISBN-10: 0-13-326157-3
  • ISBN-13: 978-0-13-326157-8

This is the Rough Cut version of the printed book.

Do you want to get started building apps for Android, today’s number one mobile platform? Are you already building Android apps but want to get better at it? The AndroidDeveloper’s Cookbook, Second Edition, brings together all the expert guidance and code you’ll need.

This edition has been extensively updated to reflect the other Android 4.2.2 releases. You’ll find all-new chapters on advanced threading and UI development, in-app billing, push messages, and native development, plus new techniques for everything from accessing NFC hardware to using Google Cloud Messaging.


Proven modular recipes take you from the basics all the way to advanced services, helping you to make the most of the newest Android APIs and tools. The authors’ fully updated code samples are designed to serve as templates for your own projects and components. You’ll learn best-practice techniques for efficiently solving common problems and for avoiding pitfalls throughout the entire development lifecycle. Coverage includes


  • Organizing Android apps and integrating their activities
  • Working efficiently with services, receivers, and alerts
  • Managing threads, including advanced techniques using AsyncTasks and loaders
  • Building robust, intuitive user interfaces
  • Implementing advanced UI features, including Custom Views, animation, accessibility, and large screen support
  • Capturing, playing, and manipulating media
  • Interacting with SMS, websites, and social networks
  • Storing data via SQLite and other methods
  • Integrating in-app billing using Google Play services
  • Managing push messaging with C2DM
  • Leveraging new components and structures for native Android development
  • Efficiently testing and debugging with Android’s latest tools and techniques, including LINT code analysis

The AndroidDeveloper’s Cookbook, Second Edition, is all you need to jumpstart any Android project, and create high-value, feature-rich apps that sell.

Sample Content

Table of Contents

Preface          xxi

About the Authors          xxv

Chapter 1: Overview of Android         1

The Evolution of Android  1

The Dichotomy of Android  2

Devices Running Android  2

Hardware Differences on Android Devices  6

Features of Android  10

Android Development  11

Software Development Kit (SDK)  12

Google Play  16

Managing Reviews and Updates  19

Alternatives to Google Play  20

Chapter 2: Application Basics: Activities and Intents         21

Android Application Overview  21

Activity Lifecycle  31

Multiple Activities  36

Chapter 3: Threads, Services, Receivers, and Alerts         51

Threads  51

Messages between Threads: Handlers  58

Alerts  63

Services  69

Broadcast Receivers 82

App Widgets 85

Chapter 4: Advanced Threading Techniques         89

Loaders 89

AsyncTasks 91

Android Inter-Process Communication 94

Chapter 5: User Interface Layout         109

Resource Directories and General Attributes 109

Views and ViewGroups 112

Text Manipulation 124

Other Widgets: From Buttons to Seek Bars 130

Chapter 6: User Interface Events         145

Event Handlers and Event Listeners 145

Advanced User Interface Libraries 168

Chapter 7: Advanced User Interface Techniques         177

Android Custom View 177

Android Animation 183

Accessibility 189

Fragments 191

Chapter 8: Multimedia Techniques         199

Images  199

Audio  206

Video  217

Chapter 9: Hardware Interface          221

Camera  221

Other Sensors   227

Telephony  231

Bluetooth  236

Near Field Communication (NFC)  243

Universal Serial Bus (USB)  248

Chapter 10: Networki

Updates

Submit Errata

More Information