You are previewing Android™ Application Development All-in-One For Dummies®.
O'Reilly logo
Android™ Application Development All-in-One For Dummies®

Book Description

A must-have pedagogical resource from an expert Java educator

As a Linux-based operating system designed for mobile devices, the Android OS allows programs to run on all Android devices and appear free in the Android Market. Whether you're a beginner programmer eager to create mobile applications or you're Android-savvy and looking to submit your apps to the Android Market, this compilation of eight minibooks takes you through the ins and outs of programming for Android phones. Java expert Barry Burd walks you through Android programming basics, shares techniques for developing great Android applications, reviews Android hardware, and much more.

  • Uses the straightforward-but-fun For Dummies style to walk you through the ins and outs of programming for Android mobile devices

  • Features eight minibooks that take you from novice Android user to confidently developing Android applications

  • Addresses Android programming basics, the operating system, hardware, and security

  • Details what it takes to develop amazing Android apps

  • Covers the Eclipse environment and SQLite

Start developing applications for the Android OS today with the expert advice in Android Application Development All-in-One For Dummies.

Table of Contents

  1. Cover
  2. Table of Contents
  3. Title Page
  4. Introduction
  5. Book I: Android Jump-Start
    1. Chapter 1: All about Android
      1. The Consumer Perspective
      2. The Developer Perspective
      3. The Business Perspective
    2. Chapter 2: Installing the Software Tools
      1. Installing the Java Development Kit
      2. Installing the Android SDK Starter Package
      3. Installing the Eclipse Development Environment
      4. Configuring Eclipse
      5. Fattening Up the Android SDK
    3. Chapter 3: Creating an Android App
      1. Creating Your First App
      2. Testing Apps on a Real Device
      3. Examining a Basic Android App
    4. Chapter 4: Conjuring and Embellishing an Android App
      1. Dragging, Dropping, and Otherwise Tweaking an App
      2. A Bit of Debugging
      3. Improving Your App
  6. Book II: Android Background Material
    1. Chapter 1: Using the Eclipse Workbench
      1. What’s All That Stuff on the Eclipse Workbench?
      2. Some Useful Views
      3. Be Nice to Your Java Code
      4. Some Things You Can Do with Eclipse Projects
    2. Chapter 2: It's Java!
      1. From Development to Execution with Java
      2. Grasping Java Code
    3. Chapter 3: What Java Does (and When)
      1. Making Decisions (Java if Statements)
      2. Repeating Instructions Over and Over Again
      3. Jumping Away from Trouble
    4. Chapter 4: Object-Oriented Programming in Java
      1. Static Fields and Methods
      2. Interfaces and Callbacks
      3. Classes That Must (And Must Not) Be Extended
      4. Inner Classes
    5. Chapter 5: A brief Look at XML
      1. XML Isn’t Ordinary Text
      2. What’s in a Namespace?
  7. Book III: The Building Blocks
    1. Chapter 1: Android Activities
      1. All about Activities
      2. The Activity Lifecycle
      3. Getting Results Back from an Activity
      4. Applications Don’t Feel Left Out
    2. Chapter 2: Intents and Intent Filters
      1. How to Make a Match
      2. Practice, Practice, Practice
      3. Activities and Stacks
    3. Chapter 3: Services
      1. A Very Simple Service
      2. Running a Service at Boot Time
      3. Starting and Binding
      4. Talking about the Weather
      5. Getting Real Weather Data
      6. Talking to a Service as if You’re Right Next Door
    4. Chapter 4: Broadcast Receivers
      1. Receivers 101
      2. Beyond the Fundamentals
      3. Standard Broadcasts
    5. Chapter 5: Content Providers
      1. Databases: From the Stone Age to the Present Day
      2. Working with a Database
      3. Creating and Using a Content Provider
  8. Book IV: Programming Cool Phone Features
    1. Chapter 1: Lay Out Your Stuff
      1. Android Layouts
      2. Linear Layout
      3. Attributes (A Detour)
      4. Relative Layout
      5. Table Layout
      6. Frame Layout
    2. Chapter 2: Menus, Lists, and Notifications
      1. All about Menus
      2. Creating an Options Menu
      3. Creating a Context Menu
      4. More Stuff about Lists
      5. Displaying Two (or More) Values in a List
      6. Notifying the User
    3. Chapter 3: An Android Potpourri
      1. Making Phone Calls
      2. Sending a Text Message
      3. Working with Device Sensors
      4. Drawing, Dragging, and Zooming
      5. On the Importance of Waiting Patiently
    4. Chapter 4: Apps for Tablets
      1. What Fragments Can Do For You
      2. Getting the Best of Both Worlds
  9. Book V: The Job Isn't Done Until . . .
    1. Chapter 1: Publishing Your App to the Android Market
      1. Preparing Your Code
      2. Creating the APK File
      3. Creating an Android Market Account
      4. Pricing Your Application
      5. Getting Screen Shots for Your Application
      6. Uploading Your Application to the Android Market
      7. Watching the Installs Soar
    2. Chapter 2: Publishing Your App to the Amazon Appstore
      1. Becoming an Amazon Appstore Developer
      2. Uploading an App
  10. Book VI: Alternative Android Development Techniques
    1. Chapter 1: Creating Code Quickly with App Inventor
      1. Getting Started with App Inventor
      2. Creating a Project
      3. Using the Designer
      4. Using the Blocks Editor
    2. Chapter 2: More App Inventor Magic
      1. Snap a Photo
      2. Send a Text Message
      3. Travel to the Orient
      4. Animate!
      5. Using a Database
      6. Starting Another Android App
    3. Chapter 3: How to “Rough It” without Eclipse
      1. Preliminaries
      2. Meet Apache Ant
      3. Getting Ready for Text-Based Development
      4. Android Development with Ant
      5. Android Development with Operating System Commands
    4. Chapter 4: Going Native
      1. The Native Development Kit
      2. Creating an Application