Beginning Android™ Application Development
Read it now on the O’Reilly learning platform with a 10-day free trial.
O’Reilly members get unlimited access to books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.
Book description
Create must-have applications for the latest Android OS
The Android OS is a popular and flexible platform for many of today's most in-demand mobile devices. This full-color guide offers you a hands-on introduction to creating Android applications for the latest mobile devices. Veteran author Wei Meng Lee accompanies each lesson with real-world examples to drive home the content he covers. Beginning with an overview of core Android features and tools, he moves at a steady pace while teaching everything you need to know to successfully develop your own Android applications.
- Explains what an activity is and reviews its lifecycle
- Zeroes in on customizing activities by applying styles and themes
- Looks at the components of a screen, including LinearLayout, AbsoluteLayout, and RelativeLayout, among others
- Details ways to adapt to different screen sizes and adjust display orientation
- Reviews the variety of views such as TextView, ProgressBar, TimePicker, and more
Beginning Android Application Development pares down the most essential steps you need to know so you can start creating Android applications today.
Show and hide more
Table of contents Product information
Table of contents
- Copyright
- CREDITS
- ABOUT THE AUTHOR
- ABOUT THE TECHNICAL EDITOR
- ACKNOWLEDGMENTS
- INTRODUCTION
- WHO THIS BOOK IS FOR
- WHAT THIS BOOK COVERS
- HOW THIS BOOK IS STRUCTURED
- WHAT YOU NEED TO USE THIS BOOK
- CONVENTIONS
- SOURCE CODE
- ERRATA
- P2P.WROX.COM
- 1.1. WHAT IS ANDROID?
- 1.1.1. Android Versions
- 1.1.2. Features of Android
- 1.1.3. Architecture of Android
- 1.1.4. Android Devices in the Market
- 1.1.5. The Android Market
- 1.2.1. Eclipse
- 1.2.2. Android SDK
- 1.2.3. Android Development Tools (ADT)
- 1.2.4. Creating Android Virtual Devices (AVDs)
- 1.2.5. Creating Your First Android Application
- 1.2.6. Anatomy of an Android Application
- 2.1. UNDERSTANDING ACTIVITIES
- 2.1.1. Applying Styles and Themes to Activity
- 2.1.2. Hiding the Activity Title
- 2.1.3. Displaying a Dialog Window
- 2.1.4. Displaying a Progress Dialog
- 2.2.1. Resolving Intent Filter Collision
- 2.2.2. Returning Results from an Intent
- 2.2.3. Passing Data Using an Intent Object
- 2.3.1. Understanding the Intent Object
- 2.3.2. Using Intent Filters
- 2.3.3. Adding Categories
- 3.1. UNDERSTANDING THE COMPONENTS OF A SCREEN
- 3.1.1. Views and ViewGroups
- 3.1.2. LinearLayout
- 3.1.3. AbsoluteLayout
- 3.1.4. TableLayout
- 3.1.5. RelativeLayout
- 3.1.6. FrameLayout
- 3.1.7. ScrollView
- 3.2.1. Anchoring Views
- 3.2.2. Resizing and Repositioning
- 3.3.1. Persisting State Information during Changes in Configuration
- 3.3.2. Detecting Orientation Changes
- 3.3.3. Controlling the Orientation of the Activity
- 3.5.1. Overriding Methods Defined in an Activity
- 3.5.2. Registering Events for Views
- 4.1. BASIC VIEWS
- 4.1.1. TextView View
- 4.1.2. Button, ImageButton, EditText, CheckBox, ToggleButton, RadioButton, and RadioGroup Views
- 4.1.3. ProgressBar View
- 4.1.4. AutoCompleteTextView View
- 4.2.1. TimePicker View
- 4.2.1.1. Displaying the TimePicker in a Dialog Window
- 4.2.2.1. Displaying the DatePicker View in a Dialog Window
- 4.3.1. ListView View
- 4.3.1.1. Customizing the ListView
- 5.1. USING IMAGE VIEWS TO DISPLAY PICTURES
- 5.1.1. Gallery and ImageView Views
- 5.1.2. ImageSwitcher
- 5.1.3. GridView
- 5.2.1. Creating the Helper Methods
- 5.2.2. Options Menu
- 5.2.3. Context Menu
- 5.3.1. AnalogClock and DigitalClock Views
- 5.3.2. WebView
- 6.1. SAVING AND LOADING USER PREFERENCES
- 6.1.1. Using getSharedPreferences()
- 6.1.2. Using getPreferences()
- 6.2.1. Saving to Internal Storage
- 6.2.2. Saving to External Storage (SD Card)
- 6.2.3. Choosing the Best Storage Option
- 6.2.4. Using Static Resources
- 6.3.1. Creating the DBAdapter Helper Class
- 6.3.2. Using the Database Programmatically
- 6.3.2.1. Adding Contacts
- 6.3.2.2. Retrieving All the Contacts
- 6.3.2.3. Retrieving a Single Contact
- 6.3.2.4. Updating a Contact
- 6.3.2.5. Deleting a Contact
- 6.3.2.6. Upgrading the Database
- 6.3.3.1. Bundling the Database with an Application
- 7.1. SHARING DATA IN ANDROID
- 7.2. USING A CONTENT PROVIDER
- 7.2.1. Predefined Query String Constants
- 7.2.2. Projections
- 7.2.3. Filtering
- 7.2.4. Sorting
- 7.3.1. Using the Content Provider
- 8.1. SMS MESSAGING
- 8.1.1. Sending SMS Messages Programmatically
- 8.1.2. Getting Feedback after Sending the Message
- 8.1.3. Sending SMS Messages Using Intent
- 8.1.4. Receiving SMS Messages
- 8.1.4.1. Updating an Activity from a BroadcastReceiver
- 8.1.4.2. Invoking an Activity from a BroadcastReceiver
- 8.3.1. Downloading Binary Data
- 8.3.2. Downloading Text Files
- 8.3.3. Accessing Web Services
- 8.3.4. Performing Asynchronous Calls
- 9.1. DISPLAYING MAPS
- 9.1.1. Creating the Project
- 9.1.2. Obtaining the Maps API Key
- 9.1.3. Displaying the Map
- 9.1.4. Displaying the Zoom Control
- 9.1.5. Changing Views
- 9.1.6. Navigating to a Specific Location
- 9.1.7. Adding Markers
- 9.1.8. Getting the Location That Was Touched
- 9.1.9. Geocoding and Reverse Geocoding
- 9.2.1. Monitoring a Location
- 10.1. CREATING YOUR OWN SERVICES
- 10.1.1. Performing Long-Running Tasks in a Service
- 10.1.2. Performing Repeated Tasks in a Service
- 10.1.3. Executing Asynchronous Tasks on Separate Threads Using IntentService
- 11.1. PREPARING FOR PUBLISHING
- 11.1.1. Versioning
- 11.1.2. Digitally Signing Your Android Applications
- 11.2.1. Using the adb.exe Tool
- 11.2.2. Using a Web Server
- 11.2.3. Publishing on the Android Market
- 11.2.3.1. Creating a Developer Profile
- 11.2.3.2. Submitting Your Apps
- A.1. GETTING AROUND IN ECLIPSE
- A.1.1. Workspaces
- A.1.2. Package Explorer
- A.1.3. Using Projects from Other Workspaces
- A.1.4. Editors
- A.1.5. Perspectives
- A.1.6. Auto Import of Namespaces
- A.1.7. Code Completion
- A.1.8. Refactoring
- A.2.1. Setting Breakpoints
- A.2.2. Exceptions
- B.1. USES OF THE ANDROID EMULATOR
- B.2. INSTALLING CUSTOM AVDS
- B.3. EMULATING REAL DEVICES
- B.4. SD CARD EMULATION
- B.5. EMULATING DEVICES WITH DIFFERENT SCREEN SIZES
- B.6. EMULATING PHYSICAL CAPABILITIES
- B.7. SENDING SMS MESSAGES TO THE EMULATOR
- B.8. MAKING PHONE CALLS
- B.9. TRANSFERRING FILES INTO AND OUT OF THE EMULATOR
- B.10. RESETTING THE EMULATOR
- C.1. CHAPTER 1 ANSWERS
- C.2. CHAPTER 2 ANSWERS
- C.3. CHAPTER 3 ANSWERS
- C.4. CHAPTER 4 ANSWERS
- C.5. CHAPTER 5 ANSWERS
- C.6. CHAPTER 6 ANSWERS
- C.7. CHAPTER 7 ANSWERS
- C.8. CHAPTER 8 ANSWERS
- C.9. CHAPTER 9 ANSWERS
- C.10. CHAPTER 10 ANSWERS
- C.11. CHAPTER 11 ANSWERS
Show and hide more
Product information
- Title: Beginning Android™ Application Development
- Author(s): Wei-Meng Lee
- Release date: April 2011
- Publisher(s): Wrox
- ISBN: 9781118017111