CYAN
MAGENTA
YELLOW
BLACK
PANTONE 123 C
SPOT MATTE
BOOKS FOR PROFESSIONALS BY PROFESSIONALS®
Companion
eBook
Available
• Learn how to structure mobile web apps through real-world application
examples.
• Discover what cloud platforms such as Google App Engine have to offer
Android web apps.
• Get a real picture of the status of HTML5 on Android and other mobile
devices.
• Understand how to use native bridging frameworks such as PhoneGap
to device-level features.
• Explore the different UI frameworks that are available for building
mobile web apps.
• Learn how to include mapping and leverage Location-Based Services in
mobile web apps.
• Enable social integration with your Android web.
After reading Pro Android Web Apps, you will have a greater understanding
of not only the world of web apps on Android, but also how to leverage
additional tools. Through the practical samples in the book, you will gain
solid exposure of where the opportunities and challenges lie when building
mobile apps the web way.
SEE LAST PAGE FOR DETAILS ON $10 eBOOK VERSION
US $44.99
ISBN 978-1-4302-2629-1
978-1-4302-3276-6
5 44 9 9
Oehlman
Blanc
COMPANION eBOOK
Android Web Apps
Pro Android Web Apps teaches developers already familiar with web application development how to code and structure a web app for use on the
Android mobile platform.
Pro
D
eveloping applications for Android and other mobile devices using web
technologies is now well within reach. When the capabilities of HTML5
are combined with CSS3 and JavaScript, web application developers have an
opportunity to develop compelling mobile applications using familiar tools.
Not only is it possible to build mobile web apps that feel as good as native
apps, but also to write an application once and have it run a variety of different devices.
The “Build Once” Approach
for Mobile App Development
Pro
Android Web Apps
Develop for Android Using HTML5, CSS3 & JavaScript
Damon Oehlman | Sébastien Blanc
Shelve in
Mobile Computing
SOURCE CODE ONLINE
www.apress.com
User level:
Intermediate–Advanced
9 781430 232766
226291
www.it-ebooks.info
this print for content only—size & color not accurate
Trim: 7.5 x 9.25 spine = 0.875" 392 page count 444ppi
Download from Wow! eBook <www.wowebook.com>
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
iv
www.it-ebooks.info
Contents at a Glance
■Contents .......................................................................................................... v
■About the Authors ........................................................................................... x
■About the Technical Reviewer ........................................................................ xi
■Acknowledgments ......................................................................................... xii
■Introduction .................................................................................................. xiii
■Chapter 1: Getting Started ............................................................................... 1
■Chapter 2: Building a Mobile HTML Entry Form............................................. 21
■Chapter 3: HTML5 Storage APIs..................................................................... 47
■Chapter 4: Constructing a Multipage App ..................................................... 65
■Chapter 5: Synchronizing with the Cloud ...................................................... 95
■Chapter 6: Competing with Native Apps ...................................................... 111
■Chapter 7: Exploring Interactivity ............................................................... 129
■Chapter 8: Location-Based Services and Mobile Mapping .......................... 161
■Chapter 9: Native Bridging with PhoneGap ................................................. 193
■Chapter 10: Integrating with Social APIs .................................................... 221
■Chapter 11: Mobile UI Frameworks Compared ............................................ 255
■Chapter 12: Polishing and Packaging an App for Release .......................... 299
■Chapter 13: The Future of Mobile Computing .............................................. 337
■Appendix: Debugging Android Web Apps .................................................... 351
■Index ............................................................................................................ 359
iii
www.it-ebooks.info
Pro Android Web Apps
Develop for Android Using
HTML5, CSS3 & JavaScript
■■■
Damon Oehlman
and
Sébastien Blanc
i
www.it-ebooks.info
Pro Android Web Apps: Develop for Android Using HTML5, CSS3 & JavaScript
Copyright © 2011 by Damon Oehlman and Sébastien Blanc
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any
means, electronic or mechanical, including photocopying, recording, or by any information
storage or retrieval system, without the prior written permission of the copyright owner and the
publisher.
ISBN-13 (pbk): 978-1-4302-3276-6
ISBN-13 (electronic): 978-1-4302-3277-3
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names, logos, and images may appear in this book. Rather than use a trademark
symbol with every occurrence of a trademarked name, logo, or image we use the names, logos,
and images only in an editorial fashion and to the benefit of the trademark owner, with no
intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if
they are not identified as such, is not to be taken as an expression of opinion as to whether or not
they are subject to proprietary rights.
President and Publisher: Paul Manning
Lead Editors: Steve Anglin and Douglas Pundick
Technical Reviewer: Kunal Mittal
Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell,
Jonathan Gennick, Jonathan Hassell, Michelle Lowman, Matthew Moodie, *EFF /LSON
Jeffrey Pepper, Frank Pohlmann, Douglas Pundick, Ben Renow-Clarke, Dominic
Shakeshaft, Matt Wade, Tom Welsh
Coordinating Editor: Mary Tobin
Copy Editor: Damon Larson
Compositor: MacPS, LLC
Indexer: BIM Indexing & Proofreading Services
Artist: April Milne
Cover Designer: Anna Ishchenko
Distributed to the book trade worldwide by Springer Science+Business Media, LLC., 233 Spring
Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail
, or visit www.springeronline.com.
For information on translations, please e-mail , or visit www.apress.com.
Apress and friends of ED books may be purchased in bulk for academic, corporate, or
promotional use. eBook versions and licenses are also available for most titles. For more
information, reference our Special Bulk Sales–eBook Licensing web page at
www.apress.com/info/bulksales.
The information in this book is distributed on an “as is” basis, without warranty. Although every
precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall
have any liability to any person or entity with respect to any loss or damage caused or alleged to
be caused directly or indirectly by the information contained in this work.
The source code for this book is available to readers at www.apress.com.