You are previewing Android Application Development: A Beginner’s Tutorial.
O'Reilly logo
Android Application Development: A Beginner’s Tutorial

Book Description

Android is the most popular mobile platform today, and this book is a thorough introduction to Android application development. A structured tutorial, it shows how to create applications and use the Android APIs through numerous examples. The book covers the latest Android version—KitKat—and the chapters cover topics including UI components, the latest Animation API in Android, how to record media, and how to handle asynchronous tasks. 

Table of Contents

  1. Introduction
    1. Overview
    2. Application Development in Brief
    3. Android Versions
    4. Online Reference
    5. Which Java Versions Can I Use?
    6. About This Book
    7. Code Download
  2. Chapter 1: Getting Started
    1. Downloading and Installing Android Studio
    2. Creating An Application
    3. Running the Application on the Emulator
    4. The Application Structure
    5. Debuging Your Application
    6. The Android SDK Manager
    7. Creating An Android Virtual Device
    8. Running An Application on A Physical Device
    9. Opening A Project in Android Studio
    10. Using Java 8
    11. Getting Rid of the Support Library
    12. Summary
  3. Chapter 2: Activities
    1. The Activity Lifecycle
    2. ActivityDemo Example
    3. Changing the Application Icon
    4. Using Android Resources
    5. Starting Another Activity
    6. Activity-Related Intents
    7. Summary
  4. Chapter 3: UI Components
    1. Overview
    2. Using the Android Studio UI Tool
    3. Using Basic Components
    4. Toast
    5. AlertDialog
    6. Notifications
    7. Summary
  5. Chapter 4: Layouts
    1. Overview
    2. LinearLayout
    3. RelativeLayout
    4. FrameLayout
    5. TableLayout
    6. Grid Layout
    7. Creating A Layout Programmatically
    8. Summary
  6. Chapter 5: Listeners
    1. Overview
    2. Using the onClick Attribute
    3. Implementing A Listener
    4. Summary
  7. Chapter 6: The Action Bar
    1. Overview
    2. Adding Action Items
    3. Adding Dropdown Navigation
    4. Going Back Up
    5. Summary
  8. Chapter 7: Menus
    1. Overview
    2. The Menu File
    3. The Options Menu
    4. The Context Menu
    5. The Popup Menu
    6. Summary
  9. Chapter 8: ListView
    1. Overview
    2. Creating A ListAdapter
    3. Using A ListView
    4. Extending ListActivity and Writing A Custom Adapter
    5. Styling the Selected Item
    6. Summary
  10. Chapter 9: GridView
    1. Overview
    2. Using the GridView
    3. Summary
  11. Chapter 10: Styles and Themes
    1. Overview
    2. Using Styles
    3. Using Themes
    4. Summary
  12. Chapter 11: Bitmap Processing
    1. Overview
    2. Bitmap Processing
    3. Summary
  13. Chapter 12: Graphics and Custom Views
    1. Overview
    2. Hardware Acceleration
    3. Creating A Custom View
    4. Drawing Basic Shapes
    5. Drawing Text
    6. Transparency
    7. Shaders
    8. Clipping
    9. Using Paths
    10. The CanvasDemo Application
    11. Summary
  14. Chapter 13: Fragments
    1. The Fragment Lifecycle
    2. Fragment Management
    3. Using A Fragment
    4. Extending ListFragment and Using FragmentManager
    5. Summary
  15. Chapter 14: Multi-Pane Layouts
    1. Overview
    2. A Multi-Pane Example
    3. Summary
  16. Chapter 15: Animation
    1. Overview
    2. Property Animation
    3. An Animation Project
    4. Summary
  17. Chapter 16: Preferences
    1. SharedPreferences
    2. The Preference API
    3. Using Preferences
    4. Summary
  18. Chapter 17: Working with Files
    1. Overview
    2. Creating a Notes Application
    3. Accessing the Public Storage
    4. Summary
  19. Chapter 18: Working with the Database
    1. Overview
    2. The Database API
    3. Example
    4. Summary
  20. Chapter 19: Taking Pictures
    1. Overview
    2. Using Camera
    3. The Camera API
    4. Using the Camera API
    5. Summary
  21. Chapter 20: Making Videos
    1. Using the Built-in Intent
    2. MediaRecorder
    3. Using MediaRecorder
    4. Summary
  22. Chapter 21: The Sound Recorder
    1. The MediaRecorder Class
    2. Example
    3. Summary
  23. Chapter 22: Handling the Handler
    1. Overview
    2. Example
    3. Summary
  24. Chapter 23: Asynchronous Tasks
    1. Overview
    2. Example
    3. Summary
  25. Chapter 24: Services
    1. Overview
    2. The Service API
    3. Declaring A Service
    4. A Service Example
    5. Summary
  26. Chapter 25: Broadcast Receivers
    1. Overview
    2. BroadcastReceiver-based Clock
    3. Canceling A Notification
    4. Summary
  27. Chapter 26: The Alarm Service
    1. Overview
    2. Example
    3. Summary
  28. Chapter 27: Content Providers
    1. Overview
    2. The ContentProvider Class
    3. Creating A Content Provider
    4. Consuming A Content Provider
    5. Summary
  29. Appendix A: Installing the JDK
    1. Downloading and Installing the JDK
  30. Appendix B: Using the ADT Bundle
    1. Installing the ADT
    2. Creating An Application
    3. Running An Application on An Emulator
    4. Logging
    5. Debugging An Application