Android
2.9
for Android
2.2
Android™
Programming
Tutorials
Mark L. Murphy
C
WARE
This document is licensed for Keith Rasmussen's exclusive use by CommonsWare, LLC
OMMONS
Android Programming Tutorials
by Mark L. Murphy
This document is licensed for Keith Rasmussen's exclusive use by CommonsWare, LLC
Android Programming Tutorials
by Mark L. Murphy
Copyright ©2010 CommonsWare, LLC. All Rights Reserved.
Printed in the United States of America.
CommonsWare books may be purchased in printed (bulk) or digital form for educational or
business use. For more information, contact direct@commonsware.com.
Printing History:
Jul 2010: Version 2.9
ISBN: 978-0-9816780-3-0
The CommonsWare name and logo, “Busy Coder's Guide”, and related trade dress aretrademarks of CommonsWare, LLC.
All other trademarks referenced in this book are trademarks of their respective firms.
The publisher and author(s) assume no responsibility for errors or omissions or for damages
resulting from the use of the information contained herein.
This document is licensed for Keith Rasmussen's exclusive use by CommonsWare, LLC
Table of Contents
Welcome to theWarescription!.........................................................xvii
Preface..................................................................................................xix
Welcome to the Book!...............................................................................xixPrerequisites...............................................................................................xix
Using the Tutorials.....................................................................................xx
Warescription............................................................................................xxi
What's New...............................................................................................xxii
About the "Further Reading"Sections....................................................xxii
Errata and Book Bug Bounty..................................................................xxiii
Source Code License................................................................................xxiv
Creative Commons and the Four-to-Free (42F) Guarantee.................xxiv
Lifecycle of a CommonsWare Book........................................................xxvRoster of Tutorials...................................................................................xxvi
Your First Android App...........................................................................1
Step-By-Step Instructions.............................................................................1
Step #1: Choose a Place For Your Applications....................................1Step #2: Check Your Java Environment................................................2
Step #3: Download and Install the Android SDK................................3
Step #4: Generate the Application Files...............................................5
iii
This document is licensed for Keith Rasmussen's exclusive use by CommonsWare, LLC
Step #5: Examine and Modify the LayoutFile.....................................5
Step #6: Examine the Activity Java Source..........................................6
Step #7: Install Ant.................................................................................7
Step #8: Compile the Application.........................................................7
Step #9: Configure and Start Your Emulator.......................................8Step #10: Install the Application in Your Emulator...........................10
Step #11: Run the Application in Your Emulator.................................11
Extra Credit..................................................................................................13
Further Reading...........................................................................................14
A Simple...
Regístrate para leer el documento completo.