Programming Android: Java Programming for the New Generation of Mobile Devices [NOOK Book]


Get thoroughly up to speed on Android programming, and learn how to create up-to-date user experiences for both handsets and tablets. With this book’s extensively revised second edition, you’ll focus on Android tools and programming essentials, including best practices for using Android 4 APIs. If you’re experienced with Java or Objective-C, you’ll gain the knowledge necessary for building well-engineered applications.

Programming Android is ...

See more details below
Programming Android: Java Programming for the New Generation of Mobile Devices

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$24.99 price
(Save 41%)$42.99 List Price


Get thoroughly up to speed on Android programming, and learn how to create up-to-date user experiences for both handsets and tablets. With this book’s extensively revised second edition, you’ll focus on Android tools and programming essentials, including best practices for using Android 4 APIs. If you’re experienced with Java or Objective-C, you’ll gain the knowledge necessary for building well-engineered applications.

Programming Android is organized into four parts:

  • Part One helps programmers with some Java or iOS experience get off to a fast start with the Android SDK and Android programming basics.
  • Part Two delves into the Android framework, focusing on user interface and graphics class hierarchies, concurrency, and databases. It’s a solid foundation for understanding of how the most important parts of an Android application work.
  • Part Three features code skeletons and patterns for accelerating the development of apps that use web data and Android 4 user interface conventions and APIs.
  • Part Four delivers practical coverage of Android’s multimedia, search, location, sensor, and account APIs, plus the Native Development Kit, enabling developers to add advanced capabilities.

This updated edition of Programming Android focuses on the knowledge and developer priorities that are essential for successful Android development projects.

Read More Show Less

Product Details

  • ISBN-13: 9781449358471
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 9/28/2012
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 2
  • Pages: 566
  • Sales rank: 333,509
  • File size: 6 MB

Meet the Author

Zigurd Mednieks is a consultant to leading OEMs, enterprises, and entrepreneurial ventures creating Android-based systems and software. Previously he was Chief Architect at D2 Technologies, a voice-over-IP (VoIP) technology provider. There he lead engineering and product definition work for products that blended communication and social media in purpose-built embedded systems and on the Android platform.

Laird Dornin is a mobile development architect with extensive experience in Java, Android, J2ME, SavaJe, and the webkit browser library. He was a member of the J2SE development team at Sun Microsystems specializing in java.rmi and Jini technology. Laird is currently a Senior Engineer at a major wireless carrier, where he provides Android architectural guidance and Network API support to members of the carrier's developer community.

Blake Meike, Senior Software Development Engineer at Amazon, has more than 10 years of experience with Java. He’s developed applications using most of the GUI toolkits and several of the Java mobile device platforms.

With over a decade of software engineering experience, Masumi Nakamura has worked in various positions within the mobile technology arena, from building out mobile infrastructure to founding his own mobile company. He was one of the primary Android developers of the Where Android app and now is Principal Architect for the Big Data and Recommendations Group at Where, Inc. Outside of coding, he spends his time practicing Ba Gua Zhang and caring for his two cats.

Read More Show Less

Table of Contents

How This Book Is Organized;
Conventions Used in This Book;
Using Code Examples;
Safari® Books Online;
How to Contact Us;
Tools and Basics;
Chapter 1: Installing the Android SDK and Prerequisites;
1.1 Installing the Android SDK and Prerequisites;
1.2 Test Drive: Confirm That Your Installation Works;
1.3 Components of the SDK;
1.4 Keeping Up-to-Date;
1.5 Example Code;
1.6 On Reading Code;
Chapter 2: Java for Android;
2.1 Android Is Reshaping Client-Side Java;
2.2 The Java Type System;
2.3 Scope;
2.4 Idioms of Java Programming;
Chapter 3: The Ingredients of an Android Application;
3.1 Traditional Programming Models Compared to Android;
3.2 Activities, Intents, and Tasks;
3.3 Other Android Components;
3.4 Component Life Cycles;
3.5 Static Application Resources and Context;
3.6 The Android Application Runtime Environment;
3.7 Extending Android;
3.8 Concurrency in Android;
3.9 Serialization;
Chapter 4: Getting Your Application into Users’ Hands;
4.1 Application Signing;
4.2 Placing an Application for Distribution in the Android Market;
4.3 Alternative Distribution;
4.4 Google Maps API Keys;
4.5 Specifying API-Level Compatibility;
4.6 Compatibility with Many Kinds of Screens;
Chapter 5: Eclipse for Android Software Development;
5.1 Eclipse Concepts and Terminology;
5.2 Eclipse Views and Perspectives;
5.3 Java Coding in Eclipse;
5.4 Eclipse and Android;
5.5 Preventing Bugs and Keeping Your Code Clean;
5.6 Eclipse Idiosyncrasies and Alternatives;
About the Android Framework;
Chapter 6: Building a View;
6.1 Android GUI Architecture;
6.2 Assembling a Graphical Interface;
6.3 Wiring Up the Controller;
6.4 The Menu and the Action Bar;
6.5 View Debugging and Optimization;
Chapter 7: Fragments and Multiplatform Support;
7.1 Creating a Fragment;
7.2 Fragment Life Cycle;
7.3 The Fragment Manager;
7.4 Fragment Transactions;
7.5 The Support Package;
7.6 Fragments and Layout;
Chapter 8: Drawing 2D and 3D Graphics;
8.1 Rolling Your Own Widgets;
8.2 Bling;
Chapter 9: Handling and Persisting Data;
9.1 Relational Database Overview;
9.2 SQLite;
9.3 The SQL Language;
9.4 SQL and the Database-Centric Data Model for Android Applications;
9.5 The Android Database Classes;
9.6 Database Design for Android Applications;
9.7 Using the Database API: MJAndroid;
A Skeleton Application for Android;
Chapter 10: A Framework for a Well-Behaved Application;
10.1 Visualizing Life Cycles;
10.2 Visualizing the Fragment Life Cycle;
10.3 The Activity Class and Well-Behaved Applications;
10.4 Life Cycle Methods of the Application Class;
Chapter 11: Building a User Interface;
11.1 Top-Level Design;
11.2 Visual Editing of User Interfaces;
11.3 Starting with a Blank Slate;
11.4 Laying Out the Fragments;
11.5 Folding and Unfolding a Scalable UI;
11.6 Making Activity, Fragment, Action Bar, and Multiple Layouts Work Together;
11.7 The Other Activity;
Chapter 12: Using Content Providers;
12.1 Understanding Content Providers;
12.2 Defining a Provider Public API;
12.3 Writing and Integrating a Content Provider;
12.4 File Management and Binary Data;
12.5 Android MVC and Content Observation;
12.6 A Complete Content Provider: The SimpleFinchVideoContentProvider Code;
12.7 Declaring Your Content Provider;
Chapter 13: A Content Provider as a Facade for a RESTful Web Service;
13.1 Developing RESTful Android Applications;
13.2 A “Network MVC”;
13.3 Summary of Benefits;
13.4 Code Example: Dynamically Listing and Caching YouTube Video Content;
13.5 Structure of the Source Code for the Finch YouTube Video Example;
13.6 Stepping Through the Search Application;
13.7 Step 1: Our UI Collects User Input;
13.8 Step 2: Our Controller Listens for Events;
13.9 Step 3: The Controller Queries the Content Provider with a managedQuery on the Content Provider/Model;
13.10 Step 4: Implementing the RESTful Request;
Advanced Topics;
Chapter 14: Search;
14.1 Search Interface;
14.2 Query Suggestions;
Chapter 15: Location and Mapping;
15.1 Location-Based Services;
15.2 Mapping;
15.3 The Google Maps Activity;
15.4 The MapView and MapActivity;
15.5 Working with MapViews;
15.6 MapView and MyLocationOverlay Initialization;
15.7 Pausing and Resuming a MapActivity;
15.8 Controlling the Map with Menu Buttons;
15.9 Controlling the Map with the Keypad;
15.10 Location Without Maps;
15.11 StreetView;
Chapter 16: Multimedia;
16.1 Audio and Video;
16.2 Playing Audio and Video;
16.3 Recording Audio and Video;
16.4 Stored Media Content;
Chapter 17: Sensors, NFC, Speech, Gestures, and Accessibility;
17.1 Sensors;
17.2 Near Field Communication (NFC);
17.3 Gesture Input;
17.4 Accessibility;
Chapter 18: Communication, Identity, Sync, and Social Media;
18.1 Account Contacts;
18.2 Authentication and Synchronization;
18.3 Bluetooth;
Chapter 19: The Android Native Development Kit (NDK);
19.1 Native Methods and JNI Calls;
19.2 The Android NDK;
19.3 Native Libraries and Headers Provided by the NDK;
19.4 Building Your Own Custom Library Modules;
19.5 Native Activities;

Read More Show Less

Customer Reviews

Average Rating 5
( 4 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 4 Customer Reviews
  • Anonymous

    Posted October 30, 2014



    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted February 11, 2013

    I hate people who do this


    0 out of 15 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted January 27, 2013

    Bdbcdgy cbd ncbxshsssbdhssjjjdnnhhhbcfnddcejdwhcshdddhcjcj v

    Xbx jxchccbssbxxbbbvcvddxxhshshhscccccknc,alskqoqpwooqqqpppqqqpqpqppoqosiwusoshxkxbcbhchcdjjdjgbchdxgfhgfffhfjjhsjsshhaasdbcnbbccjhhhsfruugfuftttthtyrryrrrnvvvifjfhfwhhhfbjrbjfhjhjrhhrbffbfhhbvfvvhvfuffheurbejhrufuhddduijrjkirjkkrrfreehrgfrerdedgvd jjdaACCHFFFBFBVFBGBHHHRHQaoaajjjxhdjfdjjdwwvvcfvvbdsssskwlqwwqlkdoejlqkqkqkowkidssiwlddidjfhffjfjvjhffjdjfjfhghjdhhhfhfhhvffjccjcjcjcjjdjdhvvjfjbvjfmdhkzkskkkkdjbjhxjsbhsjdkkncccncd.x cccdwhsjdjsddjdssmx bbcncbfggfgffcgdbddguttthhj bxsssshheuwddjdheheheegdgfjdhdsjrrkjrddhdhjdhhfbbbjcfjfhffkjffbfbfjvfhfffhrhghfhdnbdhnfhdffbfnfbfmgvvnvmfbfmfvjgggfnfbdgvvbfhffbfnbfnfbbhvbfnfdbfsbffnffbddbnnfllnfjdmdbffhfjdhfhfhheshdjdhhffhffgfjdjkwffhfhfjfgjfhrkjlqqwwieddjeojvvjbjrhhfhffhfhfjfhfhhfhfjffjhhdhcbccjcchdddddhdhejehehhjjjwdbfjfhhrjdfbththrhtffbcurhridjrufhrhggiththttythuttthhjjtgtbgjtbftbbthfbh jrrhrb rbgh ffhrhr hrrr rbu eunrr gjykhhh hff msshhccgdggrvc c xm bxmx d..


    0 out of 16 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted March 5, 2013

    No text was provided for this review.

Sort by: Showing all of 4 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)