Cover image for Android : a programmer's guide
Title:
Android : a programmer's guide
Personal Author:
Publication Information:
New York : McGraw-Hill, 2008
Physical Description:
xvi, 319 p. : ill. ; 23 cm.
ISBN:
9780071599887

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010190873 QA76.76.A65 D55 2008 Open Access Book Book
Searching...

On Order

Summary

Summary

Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, authenticity, or access to any online entitlements included with the product.


Master the Android mobile development platform

Build compelling Java-based mobile applications using the Android SDK and the Eclipse open-source software development platform. Android: A Programmer's Guide shows you, step-by-step, how to download and set up all of the necessary tools, build and tune dynamic Android programs, and debug your results. Discover how to provide web and chat functions, interact with the phone dialer and GPS devices, and access the latest Google services. You'll also learn how to create custom Content Providers and database-enable your applications using SQLite.

Install and configure Java, Eclipse, and Android plugin

Create Android projects from the Eclipse UI or command line Integrate web content, images, galleries, and sounds Deploy menus, progress bars, and auto-complete functions Trigger actions using Android Intents, Filters, and Receivers Implement GPS, Google Maps, Google Earth, and GTalk Build interactive SQLite databases, calendars, and notepads

Test applications using the Android Emulator and Debug Bridge


Author Notes

Jerome (J. F.) DiMarzio is a senior Web developer with a leading academic development firm. He works in VB.NET, C#, ASP.NET Java, and many other languages.


Table of Contents

Acknowledgmentsp. xiii
Introductionp. xv
1 What Is Android?p. 1
Brief History of Embedded Device Programmingp. 2
Open Handset Alliance and Androidp. 5
Introduction to Androidp. 6
2 Downloading and Installing Eclipsep. 9
Why Eclipse?p. 11
Downloading and Installing the JREp. 12
Downloading and Installing Eclipsep. 18
3 Downloading and Installing the Android SDKp. 21
Downloading the Android SDKp. 24
Downloading and Installing the Android Plugin for Eclipsep. 24
Configuring the Android Plugin for Eclipsep. 30
4 Exploring the Android SDKp. 35
What Is in the Android SDK?p. 37
Android Documentationp. 38
Android Samplesp. 39
Try This: Run the API Demos Sample Applicationp. 41
Android Toolsp. 45
APIsp. 48
Application Life Cyclep. 49
Standard ASP Application Life Cyclep. 49
Android Application Life Cyclep. 50
5 Application: Hello World!p. 53
Creating Your First Android Project in Eclipsep. 55
Examining the Android-Created Filesp. 61
AndroidManifest.xmlp. 62
Referenced Librariesp. 62
Directoriesp. 63
Hello World! Againp. 69
Hello World! Using an Imagep. 72
Hello World! Code-Based UIp. 75
Hello World! XML-Based UIp. 78
Try This: Use TextView and ImageViewp. 81
6 Using the Command-Line Tools and the Android Emulatorp. 83
Creating a Shell Activity Using the Windows CLIp. 84
Running the ActivityCreator.batp. 85
The Project Structurep. 88
Creating the Hello World! Activity in the Windows CLIp. 95
Editing the Project Filesp. 95
Adding the JAVA_HOME Variablep. 96
Compiling and Installing the Applicationp. 97
Hello World! on Linuxp. 109
Configuring the PATH Statementp. 109
Try This: Create an Image-Based Hello World! in the CLIp. 115
7 Using Intents and the Phone Dialerp. 117
What Are Intents?p. 119
Using the Dialerp. 124
Placing a Call from Your Activityp. 128
Adding the Intent to Your Activityp. 129
Editing Activity Permissionsp. 131
Modifying the AndroidPhoneDialerp. 136
Adding a Buttonp. 136
Implementing an EditText Viewp. 141
Try This: Modify the AndroidPhoneDialer Projectp. 145
8 Lists, Menus, and Other Viewsp. 149
Building the Activitiesp. 151
Intent Code for the .xml Filep. 152
Intent Code for the .java Filep. 154
Modifying the AndroidManifest.xmlp. 155
Using the Menup. 157
Creating the Activity for AutoCompletep. 163
Buttonp. 173
CheckBoxp. 178
EditTextp. 183
RadioGroupp. 189
Spinnerp. 195
Try This: Modify More View Attributesp. 202
9 Using the Cell Phone's GPS Functionalityp. 203
Using the Android Location-Based APIp. 204
Creating a kml Filep. 205
What Is a track File?p. 208
Getting the nmea File in Windowsp. 208
Getting the nmea File in Linuxp. 210
Reading the GPS with the Android Location-Based APIp. 212
Creating the AndroidLBS Activityp. 212
Passing Coordinates to Google Mapsp. 222
Adding Zoom Controlsp. 226
Try This: Toggling Between Map View's Standard and Satellite Viewsp. 232
10 Using the Google API with GTalkp. 239
Configuring the Android Emulator for GTalkp. 241
Implementing GTalk in Androidp. 244
Creating the Activity's Layout in the GoogleAPI.xmlp. 245
Adding Packages to GoogleAPI.javap. 247
Implementing the View.OnClickListenerp. 248
Compiling and Running GoogleAPIp. 252
Try This: Add a Settings Feature to Your GoogleAPI Activityp. 255
11 Application: Find a Friendp. 257
Creating a SQLite Databasep. 259
Creating a Custom Content Providerp. 263
Editing the strings.xmlp. 263
Creating Your Content Providerp. 265
Creating the FindAFriend Activityp. 276
Editing AndroidManifest.xmlp. 276
Creating the NameEditor Activityp. 278
Creating the LocationEditor Activityp. 283
Creating the FriendsMap Activityp. 293
Creating the FindAFriend Activityp. 299
Running the FindAFriend Activityp. 302
Try This: Real-Time Location Updatingp. 305
12 Android SDK Tool Referencep. 307
Android Emulator Commandsp. 308
Android Debug Bridge Commandsp. 310
Indexp. 313