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 pluginCreate 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
Acknowledgments | p. xiii |
Introduction | p. xv |
1 What Is Android? | p. 1 |
Brief History of Embedded Device Programming | p. 2 |
Open Handset Alliance and Android | p. 5 |
Introduction to Android | p. 6 |
2 Downloading and Installing Eclipse | p. 9 |
Why Eclipse? | p. 11 |
Downloading and Installing the JRE | p. 12 |
Downloading and Installing Eclipse | p. 18 |
3 Downloading and Installing the Android SDK | p. 21 |
Downloading the Android SDK | p. 24 |
Downloading and Installing the Android Plugin for Eclipse | p. 24 |
Configuring the Android Plugin for Eclipse | p. 30 |
4 Exploring the Android SDK | p. 35 |
What Is in the Android SDK? | p. 37 |
Android Documentation | p. 38 |
Android Samples | p. 39 |
Try This: Run the API Demos Sample Application | p. 41 |
Android Tools | p. 45 |
APIs | p. 48 |
Application Life Cycle | p. 49 |
Standard ASP Application Life Cycle | p. 49 |
Android Application Life Cycle | p. 50 |
5 Application: Hello World! | p. 53 |
Creating Your First Android Project in Eclipse | p. 55 |
Examining the Android-Created Files | p. 61 |
AndroidManifest.xml | p. 62 |
Referenced Libraries | p. 62 |
Directories | p. 63 |
Hello World! Again | p. 69 |
Hello World! Using an Image | p. 72 |
Hello World! Code-Based UI | p. 75 |
Hello World! XML-Based UI | p. 78 |
Try This: Use TextView and ImageView | p. 81 |
6 Using the Command-Line Tools and the Android Emulator | p. 83 |
Creating a Shell Activity Using the Windows CLI | p. 84 |
Running the ActivityCreator.bat | p. 85 |
The Project Structure | p. 88 |
Creating the Hello World! Activity in the Windows CLI | p. 95 |
Editing the Project Files | p. 95 |
Adding the JAVA_HOME Variable | p. 96 |
Compiling and Installing the Application | p. 97 |
Hello World! on Linux | p. 109 |
Configuring the PATH Statement | p. 109 |
Try This: Create an Image-Based Hello World! in the CLI | p. 115 |
7 Using Intents and the Phone Dialer | p. 117 |
What Are Intents? | p. 119 |
Using the Dialer | p. 124 |
Placing a Call from Your Activity | p. 128 |
Adding the Intent to Your Activity | p. 129 |
Editing Activity Permissions | p. 131 |
Modifying the AndroidPhoneDialer | p. 136 |
Adding a Button | p. 136 |
Implementing an EditText View | p. 141 |
Try This: Modify the AndroidPhoneDialer Project | p. 145 |
8 Lists, Menus, and Other Views | p. 149 |
Building the Activities | p. 151 |
Intent Code for the .xml File | p. 152 |
Intent Code for the .java File | p. 154 |
Modifying the AndroidManifest.xml | p. 155 |
Using the Menu | p. 157 |
Creating the Activity for AutoComplete | p. 163 |
Button | p. 173 |
CheckBox | p. 178 |
EditText | p. 183 |
RadioGroup | p. 189 |
Spinner | p. 195 |
Try This: Modify More View Attributes | p. 202 |
9 Using the Cell Phone's GPS Functionality | p. 203 |
Using the Android Location-Based API | p. 204 |
Creating a kml File | p. 205 |
What Is a track File? | p. 208 |
Getting the nmea File in Windows | p. 208 |
Getting the nmea File in Linux | p. 210 |
Reading the GPS with the Android Location-Based API | p. 212 |
Creating the AndroidLBS Activity | p. 212 |
Passing Coordinates to Google Maps | p. 222 |
Adding Zoom Controls | p. 226 |
Try This: Toggling Between Map View's Standard and Satellite Views | p. 232 |
10 Using the Google API with GTalk | p. 239 |
Configuring the Android Emulator for GTalk | p. 241 |
Implementing GTalk in Android | p. 244 |
Creating the Activity's Layout in the GoogleAPI.xml | p. 245 |
Adding Packages to GoogleAPI.java | p. 247 |
Implementing the View.OnClickListener | p. 248 |
Compiling and Running GoogleAPI | p. 252 |
Try This: Add a Settings Feature to Your GoogleAPI Activity | p. 255 |
11 Application: Find a Friend | p. 257 |
Creating a SQLite Database | p. 259 |
Creating a Custom Content Provider | p. 263 |
Editing the strings.xml | p. 263 |
Creating Your Content Provider | p. 265 |
Creating the FindAFriend Activity | p. 276 |
Editing AndroidManifest.xml | p. 276 |
Creating the NameEditor Activity | p. 278 |
Creating the LocationEditor Activity | p. 283 |
Creating the FriendsMap Activity | p. 293 |
Creating the FindAFriend Activity | p. 299 |
Running the FindAFriend Activity | p. 302 |
Try This: Real-Time Location Updating | p. 305 |
12 Android SDK Tool Reference | p. 307 |
Android Emulator Commands | p. 308 |
Android Debug Bridge Commands | p. 310 |
Index | p. 313 |