Professional
Android
™
A pplication D evelopment
Enhance Your Knowledge
Advance Your Career
Professional Android Ap plication Development
978-0-470-34471-2
A hands-on guide to building mobile applications, this book
features concise and compelling examples that show you how
to quickly construct real-world mobile applications for Android
phones. Fully up-to-date for version 1.0 of the Android SDK, it
covers all the essential features, and explores the advanced
capabilities of Android.
Professional Java J DK 6 Edition
978-0-471-77710-6
Building upon Ivor Horton’s Beginning Java 2, this resource shows
you how to use the core features of the latest JDK as well as
powerful open source tools such as Ant, JUnit, and Hibernate. It
will arm you with a well-rounded understanding of the professional
Java development landscape.
Expert One-on-One
TM
J2EETM De velopment without E JBTM
978-0-7645-5831-3
This hands-on guide shows you alternatives to EJB that can be
used to create higher quality applications faster and at lower
cost, and demonstrates how to leverage practical techniques and
tools, including the popular open source Spring Framework and
Hibernate.
spine=.864"
Get more out of
WROX.com
Programmer to Programmer
™
Interact
Take an active role online by participating in
our P2P forums
Wrox Online Library
Hundreds of our books are available online
through Books24x7.com
Wrox Blox
Download short informational pieces and
code to keep you up to date and out of
trouble!
Chapters on Demand
Purchase individual book chapters in pdf
format
Join the Community
Sign up for our free monthly newsletter at
newsletter.wrox.com
Browse
Ready for more Wrox? We have books and
e-books available on .NET, SQL Server, Java,
XML, Visual Basic, C#/ C++, and much more!
Contact Us.
We always like to get feedback from our readers. Have a book idea?
Need community support? Let us know by e-mailing wrox-partnerwithus@wrox.com
Professional Android
™
Application Development
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Chapter 1: Hello, Android . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Chapter 2: Get ting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Chapter 3: Creating Applications and A ctivities . . . . . . . . . . . . . . . . . . . . . . 45
Chapter 4: Creating User Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Chapter 5: Intents, Broadcast Receivers, Adapters, and the Int ernet . . . . . . 113
Chapter 6: Data Storage, Retrieval, and Sharing . . . . . . . . . . . . . . . . . . . . . 1 59
Chapter 7: Maps, G eocoding, and Location-Based Services . . . . . . . . . . . . . 207
Chapter 8: Working in the Bac kground . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Chapter 9: Peer-to-Peer Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
Chapter 10 : A ccessing Android Hardw are . . . . . . . . . . . . . . . . . . . . . . . . . . 315
Chapter 11: A dvanced Android De velopment . . . . . . . . . . . . . . . . . . . . . . . . 353
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399
44712ffirs.indd i44712ffirs.indd i 10/20/08 4:08:56 PM10/20/08 4:08:56 PM
44712ffirs.indd ii44712ffirs.indd ii 10/20/08 4:08:56 PM10/20/08 4:08:56 PM
Professional
Android
™
Application Development
Reto Meier
44712ffirs.indd iii44712ffirs.indd iii 10/20/08 4:08:56 PM10/20/08 4:08:56 PM