Android Programming Tutorials

Only available on StudyMode
  • Topic: Android, Android Market, Google
  • Pages : 98 (23927 words )
  • Download(s) : 134
  • Published : November 8, 2012
Open Document
Text Preview
Android Programming Tutorials

by Mark L. Murphy

Android Programming Tutorials by Mark L. Murphy Copyright © 2009-2011 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: Mar 2011:Version 3.2 ISBN: 978-0-9816780-4-7

The CommonsWare name and logo, “Busy Coder's Guide”, and related trade dress are trademarks 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.

Table of Contents

Welcome to the Warescription!. ........................................................xiii Preface. .................................................................................................xv Welcome to the Book!................................................................................xv Prerequisites................................................................................................xv Using the Tutorials....................................................................................xvi Warescription. .........................................................................................xviii What's New..............................................................................................xviii About the "Further Reading" Sections.....................................................xix Errata and Book Bug Bounty. ...................................................................xix Source Code License...................................................................................xx Creative Commons and the Four-to-Free (42F) Guarantee...................xxi Lifecycle of a CommonsWare Book. ........................................................xxi Roster of Tutorials....................................................................................xxii Your First Android Project. ....................................................................1 Step #1: Create the New Project. ..................................................................1 Step #1: Eclipse. ......................................................................................2 Step #2: Command Line. .......................................................................5 Step #2: Build, Install, and Run the Application in Your Emulator or Device. ...........................................................................................................6 iii

Step #1: Eclipse. ......................................................................................6 Step #2: Command Line. .......................................................................7 A Simple Form. ......................................................................................11 Step-By-Step Instructions. ..........................................................................11 Step #1: Generate the Application Skeleton. .......................................11 Step #2: Modify the Layout. .................................................................12 Step #3: Support All Screen Sizes. .......................................................14 Step #4: Compile and Install the Application.....................................15 Step #5: Run the Application in the Emulator. ..................................15 Step #6: Create a Model Class. ............................................................16 Step #7: Save the Form to the Model. .................................................16 Extra Credit..................................................................................................18 Further Reading. .........................................................................................18 A Fancier...
tracking img