The Deitels App-Driven, Live Code Approach is simply the best way to master Android programming! The Deitels teach Android programming through twelve complete, working Android Apps. Each chapter presents new concepts through a single App. The authors first discuss what the App does, show screen shots, test drive the App, and present an overview of the technologies and architecture used to build it. Next, the authors walk through building the App, presenting complete code and providing a detailed «Live Code» walkthrough. As part of the code walkthrough, they discuss essential programming concepts, and demonstrate the functionality of relevant Android 2.x APIs. Readers will gain hands-on experience with a wide spectrum of essential Android APIs. The book also has an extensive introduction to programming using the Java language, making this book appropriate for Java courses that want to add an app-programming flavor.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
# Android How to Program — Reading Guide
## 【One-Line Pitch】
A hands-on, app-driven introduction to Android development that teaches by building twelve complete, working apps — ideal for Java students and self-taught programmers who learn best by doing rather than by reading abstract theory.
## 【Book Arc】
- **Opening (~0%–10%)**: Sets up the book's "App-Driven, Live Code" philosophy, walks through Android history and platform features (including KitKat-era capabilities like NFC, printing, and screen recording), and covers essential setup — installing the IDE, configuring emulators (AVDs) for phones and tablets, and preparing physical devices for testing.
- **Early (~10%–23%)**: Introduces Java fundamentals and object-oriented concepts (classes, objects, inheritance, methods, attributes) through Android-specific examples, then moves into the first complete app — the Welcome App — covering the IDE's Package Explorer, editor windows, and Outline view, plus basic GUI creation with XML layouts.
- **Early (~23%–32%)**: Builds on the first app with more sophisticated UI work — using LinearLayout and GridLayout to arrange views, working with the Graphical Layout editor, and adding accessibility features like Content Descriptions and TalkBack support. Introduces Android Lint warnings and how to resolve them.
- **Middle (~32%–42%)**: Dives into event handling and user interaction through the Tip Calculator app — reading input from EditText, responding to SeekBar changes, performing calculations, and updating TextViews. Covers the Activity lifecycle, particularly onCreate, and the importance of keeping it lightweight to avoid ANR (Application Not Responding) dialogs.
- **Middle (~42%–48%)**: Explores the Twitter Searches app, introducing ListView and ListActivity for displaying scrollable data, SharedPreferences for persisting user data, Intents for launching other activities, and AlertDialog for user confirmations. Emphasizes proper dimension resources (16dp margins) and responsive layout design for both portrait and landscape orientations.
## 【Key Takeaways】
- **The "App-Driven, Live Code" method is the book's core pedagogy** (Opening): each chapter centers on one complete, working app — you see what it does, test-drive it, then build it line by line. This keeps motivation high because you're always creating something tangible, not just studying fragments.
- **Proper environment setup is non-negotiable** (Early): the book walks through creating Android Virtual Devices (AVDs) for Nexus 4, 7, and 10 with specific configurations, plus USB driver setup for Windows. Emulator testing is slow, so setting up a physical device early saves significant time.
- **Java OOP fundamentals are woven into Android examples** (Early): rather than a dry Java primer, concepts like classes, objects, inheritance, and instantiation are taught through the apps you're building — making abstract ideas concrete and immediately applicable.
- **Accessibility should be built in from the start** (Early): using Content Descriptions for ImageViews and hints for EditTexts not only eliminates Android Lint warnings but also enables TalkBack to speak the UI for visually impaired users — a practice that's both ethical and practical.
- **Layout choice matters for responsive design** (Early): LinearLayout handles proportional horizontal/vertical arrangement, while GridLayout (API 14+) enables complex grid-based layouts. The book shows when to combine them — e.g., nested horizontal LinearLayouts inside GridLayout cells for proportional spacing.
- **The Activity lifecycle is performance-critical** (Middle): onCreate should be minimal — if an app takes over five seconds to load, Android shows an ANR dialog allowing users to force-close it. This early warning sets up the threading discussion in later chapters.
- **Data persistence and inter-app communication are essential skills** (Middle): SharedPreferences for saving user data, Intents for launching other activities, and AlertDialog for confirmations — these patterns appear in nearly every real Android app and are taught through the Twitter Searches example.
## 【Reading Tips】
- **Skim the "Test-Driving" sections** at the start of each chapter — they show screenshots and describe app behavior. If you're an experienced programmer, you can skip ahead to the "Technologies Overview" and code walkthroughs.
- **Deep-read the code walkthroughs** — the "Live Code" approach annotates every significant line. Pay special attention to the anonymous inner classes implementing listeners (OnClickListener, OnItemClickListener), as these are the backbone of Android event handling.
- **Don't skip the self-review exercises** at chapter ends — they include fill-in-the-blank questions with answers that reinforce key terminology (e.g., instantiation, attributes, information hiding) and are excellent for exam prep or self-assessment.
- **The book targets Android 2.x–4.4 (KitKat) era APIs** — if you're learning modern Android (Jetpack Compose, Material Design 3, Kotlin), treat this as a historical foundation. The Java-based approach and core concepts (Activities, Fragments, layouts, Intents) still transfer, but many APIs have evolved.
- **Build the apps yourself rather than just reading** — the book's value is in the doing. Set up your environment first, then follow along chapter by chapter, typing the code and running each app before moving on.
## 【Coverage Limits】
This guide covers the book's opening through the middle sections (approximately the first half), including setup, Java fundamentals, the Welcome App, Tip Calculator, and Twitter Searches apps. Later chapters covering the Flag Quiz, Cannon Game, and more advanced topics (threading, graphics, sensors) are not detailed here — the excerpts do not cover those sections in depth.
##
Excerpt 1
eitel • Harvey Deitel • Abbey Deitel Pearson Global Edition Deitel_027379339X_mech.indd 1 01/07/14 8:17 am Global android™ edition SeCond edition Deitel • De...
lion apps in Google Play, and the number is growing quickly.8 Figure 1.9 lists some popular free and fee-based apps. You can download apps through the Play S...
nge views in a GUI. A LinearLayout (package android.widget) arranges views either horizontally (the default) or vertically and can size its views propor- tio...
sers. Searches can be fine tuned using Twitter’s search op- erators (overviewed in Section 4.2), often resulting in lengthy search strings that are time cons...
of the String resource names and corresponding values here. Double click strings.xml in the res/values folder to display the resource editor for creating the...
t down, its onDestroy method is called, which in turn calls the onDestroy methods of all the Fragments hosted by the Activity. We use this method in the Cann...
previous step displays the Choose Custom View Class dialog. In that dialog, click Create New… to display the New Java Class dialog. 7. In the Name field, ent...
ks 8.10 Wrap-Up 8.4 Building the GUI and Resource Files Self-Review Exercises | Answers to Self-Review Exercises | Exercises 8.1 Introduction The Address Boo...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Android How to Program (Paul J Deitel Harvey M Deitel Abbey Deitel) (Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Android How to Program (Paul J Deitel Harvey M Deitel Abbey Deitel) (Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment