Android Wireless Application Development Volume II: Advanced Topics, Rough Cuts, 3rd Edition

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

This is the Rough Cut version of the printed book.

Android Wireless Application Development has earned a reputation as the most useful real-world guide to building robust, commercial-grade Android apps. Now, authors Lauren Darcey and Shane Conder have systematically revised and updated this guide for the latest Android SDK and tools updates. To accommodate their extensive new coverage, they’ve split the book into two leaner, cleaner volumes. This Volume II focuses on advanced techniques for the entire app development cycle, including design, coding, testing, debugging, and distribution. Darcey and Conder cover hot topics ranging from tablet development to protecting against piracy and demonstrate advanced techniques for everything from data integration and UI development to in-app billing.

Every chapter has been thoroughly updated to reflect the latest SDKs, tools, and devices. The sample code has been completely overhauled and is available for download on a companion website. Drawing on decades of in-the-trenches experience as professional mobile developers, the authors also provide even more tips and best practices for highly efficient development. This new edition covers

This book is an indispensable resource for every intermediate- to advanced-level Java developer now participating in Android development and for every seasoned mobile developer who wants to take full advantage of the newest Android platform and hardware.

Also look for: Android Wireless Application Development, Volume I: Android Essentials (ISBN: 9780321813831)

Sample Content

Table of Contents

Part I: Advanced Android Application Design Principles

Chapter 1: Threading and Asynchronous Processing 9

The Importance of Processing Asynchronously 9

Working with the AsyncTask Class 10

Working with the Thread Class 13

Working with Loaders 14

Understanding StrictMode 14

References and More Information 15

Chapter 2: Working with Services 17

Determining When to Use Services 17

Understanding the Service Lifecycle 18

Creating a Service 18

Controlling a Service 23

Implementing a Remote Interface 24

Implementing a Parcelable Class 26

Using the IntentService Class 29

References and More Information 33

Chapter 3: Leveraging SQLite Application Databases 35

Storing Structured Data Using SQLite Databases 35

Creating a SQLite Database 36

Creating, Updating, and Deleting Database Records 38

Working with Transactions 40

Querying SQLite Databases 41

Closing and Deleting a SQLite Database 46

Designing Persistent Databases 47

Binding Data to the Application User Interface 50

References and More Information 55

Chapter 4: Building Android Content Providers 57

Acting as a Content Provider 57

Implementing a Content Provider Interface 58

Defining the Data URI 59

Defining Data Columns 59

Implementing Important Content Provider Methods 59

Updating the Manifest File 65

Enhancing Applications Using Content Providers 65

Accessing Images on the Device 66

References and More Informatio