Build unique mobile applications Meier Join the discussion @ p2p.wrox.com Wrox Programmer to Programmer™ with the latest Android SDK P r Written by an Android authority, this up-to-date resource shows you o how to leverage the features of Android 2 to enhance existing f e products or create innovative new ones. Serving as a hands-on guide s s to building mobile apps using Android, the book walks you through i a series of sample projects that introduces you to Android’s new features o n and techniques. Using the explanations and examples included in a these pages, you’ll acquire the foundation needed to write compelling l wrox.com mobile applications that use Android, along with the flexibility to quickly adapt to future enhancements. A Professional Android 2 Application Development: Programmer n Forums d (cid:127) Reviews Android as a development platform and best practices r for mobile development Join our Programmer to o Programmer forums to ask i (cid:127) Provides an in-depth look at the Android application components d and answer programming ™ (cid:127) Details creating layouts and Views to produce compelling resolution questions about this book, 2 join discussions on the independent user interfaces hottest topics in the industry, A (cid:127) Examines Intents and Content Providers for sharing data and connect with fellow p programmers from around (cid:127) Introduces techniques for creating map-based applications and using p the world. l location-based services such as GPS i Code Downloads c (cid:127) Looks at how to create and use background Services, Notifications, a Take advantage of free code t and Alarms i samples from this book, as o Professional (cid:127) Demonstrates how to create interactive homescreen components well as code samples from n hundreds of other books, all (cid:127) Explores the Bluetooth, telephony, and networking APIs ready to use. D Android 2 (cid:127) Examines using hardware, including the camera and sensors such e ™ Read More v as the compass and accelerometers e Find articles, ebooks, sample Reto Meier is a software developer who has been involved in Android since the chapters and tables of contents lo initial release in 2007. He is an Android Developer Advocate at Google. for hundreds of books, and p more reference resources on m Wrox Professional guides are planned and written by working programmers Application Development programming topics that matter to meet the real-world needs of programmers, developers, and IT professionals. to you. e Focused and relevant, they address the issues technology professionals face every n day. They provide examples, practical solutions, and expert education in new t technologies, all designed to help programmers do a better job. $44.99 USA Reto Meier Programming / Mobile & Wireless / Android $53.99 CAN Related Wrox Books Beginning iPhone SDK Programming with Objective-C ISBN: 9780470500972 Learning to develop iPhone applications doesn’t need to be an overwhelming undertaking. This book provides an easy-to-follow, Programmer to Programmer™ example-driven introduction to the fundamentals of the Apple iPhone SDK and offers you a clear understanding of how things are done when programming iPhone applications with Objective-C. When you reach the end of the book, you will be prepared to confidently tackle your next iPhone programming challenge. Get more out of Ivor Horton’s Beginning Java 2: JDK 5 Edition ISBN: 978-0-7645-6874-9 This comprehensive introduction to Java programming — written by the leading author of computer programming language tutorials — shows readers how to build real-world Java applications using the Java SDK (software development kit). wrox.com Safari and WebKit Development for iPhone OS 3.0 ISBN: 9780470549667 With the unparalleled success of iPhone and iPod touch, iPhone OS 3.0 has emerged as a compelling platform for which vast numbers of web developers are designing and building web-based mobile applications. This book explores the Safari and WebKit development platform that is built into iPhone OS 3.0 and takes you through the process of creating an iPhone web application from the ground up. You’ll learn how to use existing open source frameworks to speed up your development time, imitate qualities of built-in Apple apps, cache data locally and even run in offline mode, and more. Whether you’re eager to build new web applications for iPhone OS 3.0 or optimize existing web sites for this platform, you have everything you need to do so within this book. Interact Join the Community Take an active role online by participating in our Sign up for our free monthly newsletter at P2P forums @ p2p.wrox.com newsletter.wrox.com Wrox Online Library Browse Hundreds of our books are available online Ready for more Wrox? We have books and through Books24x7.com e-books available on .NET, SQL Server, Java, XML, Visual Basic, C#/ C++, and much more! Wrox Blox Download short informational pieces and code to keep you up to date and out of trouble! Contact Us. We always like to get feedback from our readers. Have a book idea? Need community support? Let us know by e-mailing [email protected] PROFESSIONAL ™ ANDROID 2 APPLICATION DEVELOPMENT INTRODUCTION............................................................. xxvii CHAPTER1 Hello,Android..................................................1 CHAPTER2 GettingStarted ................................................17 CHAPTER3 CreatingApplicationsandActivities ............................. 49 CHAPTER4 CreatingUserInterfaces ....................................... 85 CHAPTER5 Intents,BroadcastReceivers,Adapters, andtheInternet ............................................. 137 CHAPTER6 Files,SavingState,andPreferences............................ 187 CHAPTER7 DatabasesandContentProviders..............................209 CHAPTER8 Maps,Geocoding,andLocation-BasedServices .................245 CHAPTER9 WorkingintheBackground ...................................285 CHAPTER10 InvadingthePhone-Top ...................................... 327 CHAPTER11 Audio,Video,andUsingtheCamera ........................... 363 CHAPTER12 TelephonyandSMS.......................................... 389 CHAPTER13 Bluetooth,Networks,andWi-Fi ................................425 CHAPTER14 Sensors .................................................... 457 CHAPTER15 AdvancedAndroidDevelopment .............................. 477 INDEX.......................................................................529 PROFESSIONAL Android™ 2 Application Development Reto Meier WileyPublishing,Inc. ProfessionalAndroid™ 2ApplicationDevelopment Publishedby WileyPublishing,Inc. 10475CrosspointBoulevard Indianapolis,IN46256 www.wiley.com Copyright© 2010byWileyPublishing,Inc.,Indianapolis,Indiana ISBN:978-0-470-56552-0 ManufacturedintheUnitedStatesofAmerica 10987654321 Nopartofthispublicationmaybereproduced,storedinaretrievalsystemortransmittedinanyformorbyanymeans, electronic,mechanical,photocopying,recording,scanningorotherwise,exceptaspermittedunderSections107or108ofthe 1976UnitedStatesCopyrightAct,withouteitherthepriorwrittenpermissionofthePublisher,orauthorizationthrough paymentoftheappropriateper-copyfeetotheCopyrightClearanceCenter,222RosewoodDrive,Danvers,MA01923,(978) 750-8400,fax(978)646-8600.RequeststothePublisherforpermissionshouldbeaddressedtothePermissionsDepartment, JohnWiley&Sons,Inc.,111RiverStreet,Hoboken,NJ07030,(201)748-6011,fax(201)748-6008,oronlineat http://www.wiley.com/go/permissions. LimitofLiability/DisclaimerofWarranty:Thepublisherandtheauthormakenorepresentationsorwarrantieswithrespectto theaccuracyorcompletenessofthecontentsofthisworkandspecificallydisclaimallwarranties,includingwithoutlimitation warrantiesoffitnessforaparticularpurpose.Nowarrantymaybecreatedorextendedbysalesorpromotionalmaterials.The adviceandstrategiescontainedhereinmaynotbesuitableforeverysituation.Thisworkissoldwiththeunderstandingthatthe publisherisnotengagedinrenderinglegal,accounting,orotherprofessionalservices.Ifprofessionalassistanceisrequired,the servicesofacompetentprofessionalpersonshouldbesought.Neitherthepublishernortheauthorshallbeliablefordamages arisingherefrom.ThefactthatanorganizationorWebsiteisreferredtointhisworkasacitationand/orapotentialsourceof furtherinformationdoesnotmeanthattheauthororthepublisherendorsestheinformationtheorganizationorWebsitemay provideorrecommendationsitmaymake.Further,readersshouldbeawarethatInternetWebsiteslistedinthisworkmayhave changedordisappearedbetweenwhenthisworkwaswrittenandwhenitisread. ForgeneralinformationonourotherproductsandservicespleasecontactourCustomerCareDepartmentwithintheUnited Statesat(877)762-2974,outsidetheUnitedStatesat(317)572-3993orfax(317)572-4002. Wileyalsopublishesitsbooksinavarietyofelectronicformats.Somecontentthatappearsinprintmaynotbeavailablein electronicbooks. LibraryofCongressControlNumber:2009943638 Trademarks:Wiley,theWileylogo,Wrox,theWroxlogo,WroxProgrammertoProgrammer,andrelatedtradedressare trademarksorregisteredtrademarksofJohnWiley&Sons,Inc.and/oritsaffiliates,intheUnitedStatesandothercountries, andmaynotbeusedwithoutwrittenpermission.AndroidisatrademarkofGoogle,Inc.Allothertrademarksaretheproperty oftheirrespectiveowners.WileyPublishing,Inc.isnotassociatedwithanyproductorvendormentionedinthisbook. ToKristy ABOUT THE AUTHOR RETOMEIERisoriginallyfromPerth,WesternAustralia,butnowlivesinLondon. HecurrentlyworksasanAndroidDeveloperAdvocateatGoogle,helpingAndroidappdevelop- erscreatethebestapplicationspossible.Retoisanexperiencedsoftwaredeveloperwithmorethan 10yearsofexperienceinGUIapplicationdevelopment.BeforeGoogle,heworkedinvariousindus- tries,includingoffshoreoilandgasandfinance. Alwaysinterestedin emerging technologies,Reto hasbeeninvolvedin Androidsincetheinitial releasein2007.Inhissparetime,hetinkerswithawiderangeofdevelopmentplatforms,including Google’splethoraofdevelopertools. YoucancheckoutReto’swebsite,TheRadioactiveYak,athttp://blog.radioactiveyak.comor followhimontwitterathttp://www.twitter.com/retomeier. ABOUT THE TECHNICAL EDITOR MILANNARENDRASHAH graduatedwitha BScComputerSciencedegreefromtheUniversityof Southampton.Hehasbeenworkingasasoftwareengineerformorethansevenyears,with experiencesinC#,C/C++,andJava.HeismarriedandlivesinBuckinghamshire,UnitedKingdom.
Description: