Home > Store

Introduction to Android Application Development: Android Essentials, 4th Edition

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

Introduction to Android Application Development: Android Essentials, 4th Edition

eBook (Watermarked)

  • Your Price: $31.99
  • List Price: $39.99
  • Includes EPUB, MOBI, and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    MOBI MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.

    Adobe Reader PDF The popular standard, used most often with the free Adobe® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

Description

  • Copyright 2014
  • Dimensions: 7" x 9"
  • Edition: 4th
  • eBook (Watermarked)
  • ISBN-10: 0-13-347732-0
  • ISBN-13: 978-0-13-347732-0

Bonus KitKat material is available for download at www.informit.com/title/9780321940261

What Every Android™ App Developer Should Know Today: Android Tools, App/UI Design, Testing, Publishing, And More


This fully reworked edition of a proven title is the most useful real-world guide to building robust, commercial-grade Android™ apps. The content is revised and updated for the latest Android 4.3 SDK and the newest development best practices. Introduction to AndroidApplication Development: Android Essentials, Fourth Edition,covers all you need to quickly start developing professional apps for today’s Android devices. Three expert developers guide you through setting up your development environment, designing user interfaces, developing for diverse devices, and optimizing your entire app-development process–from design through publication. Updated throughout, this title includes extensive coverage of the most useful new Android tools and utilities. It adds an all-new chapter on planning an amazing Android app user experience, plus extensive new coverage of unit testing, dialogs, preferences, and app publishing. Throughout, key concepts are taught through clear, up-to-date example code.

This edition offers

  • Fully updated introductions to the latest Android 4.3 APIs, tools, utilities, and best practices
  • Up-to-date strategies for leveraging new Android capabilities while preserving compatibility
  • Navigation patterns and code samples for delivering more intuitive user experiences
  • Example-based explanations of ActionBars, DialogFragments, and other key concepts
  • Expert automated testing techniques to quickly improve code quality
  • New Google Play Developer Console app publishing techniques that also offer more control 

For Android developers at all levels of experience, this reference is now more valuable than ever. Students, instructors, and self-learners will especially appreciate new chapter-ending questions and exercises, carefully designed to test knowledge and deepen mastery.

Annuzzi has released new source code samples for use with Android Studio. The code updates are posted to the associated blog site: http://introductiontoandroid.blogspot.com/


Note: This revamped, newly titled edition is a complete update of Android™ Wireless Application Development, Volume I: Android Essentials, Third Edition

Sample Content

Table of Contents

Acknowledgments xxxi

About the Authors xxxiii

Introduction 1

Who Should Read This Book 1

Key Questions Answered in This Book 2

How This Book Is Structured 2

An Overview of Changes in This Edition 3

Development Environments Used in This Book 5

Supplementary Materials Available 6

Where to Find More Information 6

Conventions Used in This Book 7

Contacting the Authors 7

Part I: An Overview of the Android Platform

Chapter 1: Introducing Android 11

A Brief History of Mobile Software Development 11

The Open Handset Alliance 18

Android Platform Differences 23

The Android Platform 29

Summary 36

Quiz Questions 36

Exercises 36

References and More Information 36

Chapter 2: Setting Up Your Android Development Environment 37

Configuring Your Development Environment 37

Exploring the Android SDK 43

Summary 52

Quiz Questions 52

Exercises 53

References and More Information 53

Chapter 3: Writing Your First Android Application 55

Testing Your Development Environment 55

Building Your First Android Application 68

Summary 92

Quiz Questions 93

Exercises 94

References and More Information 94

Part II: Android Application Basics

Chapter 4: Understanding the Anatomy of an Android Application 97

Mastering Important Android Terminology 97

The Application Context 98

Performing Application Tasks with Activities 99

Organizing Activity Components with Fragments 105

Managing Activity Transitions with Intents 106

Working with Services 110

Receiving and Broadcasting Intents 111

Summary 112

Quiz Questions 112

Exercises 112

References and More Information 113

Chapter 5: Defining Your Application Using the Android Manifest File 115

Configuring Android Applications Using the Android Manifest File 115

Managing Your Application’s Identity 122

Enforcing Application System Requirements 123

Registering Activities in the Android Manifest 129

Working with Permissions 131

Exploring Other Manifest File Settings 133

Summary 133

Quiz Questions 134

Exercises 134

References and More Information 135

Chapter 6: Managing Application Resources 137

What Are Resources? 137

Setting Simple Resource Values Using the Android IDE 143

Working with Different Types of Resources 146

Working with Layouts 166

Referencing System Resources 171

Summary 172

Quiz Questions 173

Exercises 173

References and More Information 173

Part III: Android User Interface Design Essentials

Chapter 7: Exploring User Interface Building Blocks 177

Introducing Android Views and Layouts 177

Displaying Text to Users with TextView 179

Retrieving Data from Users with Text Fields 183

Giving Users Choices Using Spinner Controls 188

Allowing Simple User Selections with Buttons and Switches 190

Retrieving Dates, Times, and Numbers from Users with Pickers 197

Using Indicators to Display Progress and Activity to Users 199

Adjusting Progress with Seek Bars 202

Other Valuable User Interface Controls 203

Summary 207

Quiz Questions 207

Exercises 207

References and More Information 208

Chapter 8: Designing with Layouts 209

Creating User Interfaces in Android 209

Organizing Your User Interface 214

Using Built-in Layout Classes 215

Using Container Control Classes 232

Summary 239

Quiz Questions 239

Exercises 240

References and More Information 240

Chapter 9: Partitioning the User Interface with Fragments 243

Understanding Fragments 243

Using the Android Support Package 258

Exploring Nested Fragments 261

Summary 261

Quiz Questions 262

Exercises 262

References and More Information 263

Chapter 10: Displaying Dialogs 265

Choosing Your Dialog Implementation 265

Exploring the Different Types of Dialogs 266

Working with Dialogs and Dialog Fragments 267

Working with Support Package Dialog Fragments 271

Summary 275

Quiz Questions 276

Exercises 276

References and More Information 276

Part IV: Android Application Design Essentials

Chapter 11: Using Android Preferences 281

Working with Application Preferences 281

Finding Preferences Data on the Android File System 285

Creating Manageable User Preferences 286

Learning about Cloud Save for Android Applications 296

Summary 298

Quiz Questions 298

Exercises 299

References and More Information 299

Chapter 12: Working with Files and Directories 301

Working with Application Data on a Device 301

Practicing Good File Management 302

Understanding Android File Permissions 303

Working with Files and Directories 303

Summary 312

Quiz Questions 312

Exercises 313

References and More Information 313

Chapter 13: Leveraging Content Providers 315

Exploring Android’s Content Providers 315

Modifying Content Provider Data 324

Using Third-Party Content Providers 328

Summary 328

Quiz Questions 328

Exercises 329

References and More Information 329

Chapter 14: Designing Compatible Applications 331

Maximizing Application Compatibility 331

Designing User Interfaces for Compatibility 333

Providing Alternative Application Resources 338

Targeting Tablets, TVs, and Other New Devices 347

Targeting Google Chromecast Devices 350

Summary 350

Quiz Questions 350

Exercises 351

References and More Information 351

Part V: Publishing and Distributing Android Applications

Chapter 15: Learning the Android Software Development Process 355

An Overview of the Mobile Development Process 355

Choosing a Software Methodology 356

Gathering Application Requirements 357

Assessing Project Risks 364

Writing Essential Project Documentation 368

Leveraging Configuration Management Systems 369

Designing Mobile Applications 370

Developing Mobile Applications 373

Testing Mobile Applications 373

Deploying Mobile Applications 374

Supporting and Maintaining Mobile Applications 375

Summary 377

Quiz Questions 377

Exercises 377

References and More Information 378

Chapter 16: Designing and Developing Bulletproof Android Applications 379

Best Practices in Designing Bulletproof Mobile Applications 379

Avoiding Silly Mistakes in Android Application Design 388

Best Practices in Developing Bulletproof Mobile Applications 388

Summary 393

Quiz Questions 394

Exercises 394

References and More Information 394

Chapter 17: Planning the Android Application Experience 395

Thinking about Objectives 395

Techniques for Focusing Your Product Efforts 397

Charting Your Application’s Navigation 400

Encouraging Action 408

Communicating Your Application’s Identity 416

Designing Screen Layouts 417

Reacting Properly with Visual Feedback 418

Observing Target Users for Usability 418

Summary 419

Quiz Questions 420

Exercises 420

References and More Information 420

Chapter 18: Testing Android Applications 423

Best Practices in Testing Mobile Applications 423

Android Application Testing Essentials 435

More Android Automated Testing Programs and APIs 455

Summary 457

Quiz Questions 457

Exercises 457

References and More Information 458

Chapter 19: Publishing Your Android Application 459

Choosing the Right Distribution Model 459

Packaging Your Application for Publication 462

Publishing to Google Play 468

Google Play Staged Rollouts 478

Publishing to the Google Play Private Channel 478

Translating Your Application 478

Publishing Using Other Alternatives 479

Self-Publishing Your Application 479

Summary 480

Quiz Questions 481

Exercises 481

References and More Information 481

Part VI: Appendixes

Appendix A: Mastering the Android Development Tools 485

Using the Android Documentation 485

Leveraging the Android Emulator 489

Viewing Application Log Data with LogCat 490

Debugging Applications with DDMS 490

Using Android Debug Bridge (ADB) 490

Using the Resource Editors and UI Designer 491

Using the Android Hierarchy Viewer 493

Working with Nine-Patch Stretchable Graphics 497

Working with Other Android Tools 500

Summary 502

Quiz Questions 503

Exercises 503

References and More Information 503

Appendix B: Quick-Start Guide: The Android Emulator 505

Simulating Reality: The Emulator’s Purpose 505

Working with Android Virtual Devices 507

Launching the Emulator with a Specific AVD 512

Configuring the GPS Location of the Emulator 516

Calling between Two Emulator Instances 517

Messaging between Two Emulator Instances 518

Interacting with the Emulator through the Console 520

Enjoying the Emulator 524

Understanding Emulator Limitations 525

Summary 526

Quiz Questions 526

Exercises 527

References and More Information 527

Appendix C: Quick-Start Guide: Android DDMS 529

Using DDMS with the Android IDE and as a Standalone Application 529

Getting Up to Speed Using Key Features of DDMS 530

Working with Processes, Threads, and the Heap 531

Using the Allocation Tracker 534

Viewing Network Statistics 535

Working with the File Explorer 536

Working with the Emulator Control 539

Working with the System Information Pane 541

Taking Screen Captures of the Emulator and Device Screens 542

Working with Application Logging 543

Summary 544

Quiz Questions 545

Exercises 545

References and More Information 545

Appendix D: Android IDE and Eclipse Tips and Tricks 547

Organizing Your Android IDE Workspace 547

Writing Code in Java 552

Resolving Mysterious Build Errors 556

Summary 557

Quiz Questions 557

Exercises 557

References and More Information 557

Appendix E: Answers to Quiz Questions 559

Index 567

Updates

Submit Errata

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.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020