ebook img

Architecting Mobile Solutions for the Enterprise - Pearsoncmg PDF

121 Pages·2012·27.44 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Architecting Mobile Solutions for the Enterprise - Pearsoncmg

Architecting Mobile Solutions for the Enterprise Dino Esposito Copyright © 2012 by Dino Esposito All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. ISBN: 978-0-7356-6302-2 1 2 3 4 5 6 7 8 9 LSI 7 6 5 4 3 2 Printed and bound in the United States of America. Microsoft Press books are available through booksellers and distributors worldwide. If you need support related to this book, email Microsoft Press Book Support at [email protected]. Please tell us what you think of this book at http://www.microsoft.com/learning/booksurvey. Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/en/us/IntellectualProperty/ Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. All other marks are property of their respective owners. The example companies, organizations, products, domain names, email addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred. This book expresses the author’s views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book. Acquisitions and Developmental Editor: Russell Jones Production Editor: Kristen Borg Production Services: S4Carlisle Publishing Services Technical Reviewer: Marco Bellinaso Copyeditor: Sue McClung Indexer: Margaret Troutman Cover Design: Twist Creative • Seattle Cover Composition: Karen Montgomery Illustrator: S4Carlisle Publishing Services To Silvia, because you’re stronger than you think. To Michela, because you’re just the daughter I always dreamt of. To Francesco, because you’re a terrific, quick learner. —Dino Contents at a Glance Introduction xiii PART I GoInG MobIlE ChAptEr 1 pillars of a Mobile Strategy 3 ChAptEr 2 Mobile Sites vs. Native Applications 25 PART II MobIlE SITES ChAptEr 3 Mobile Architecture 43 ChAptEr 4 Building Mobile Websites 63 ChAptEr 5 htML5 and jQuery Mobile 105 ChAptEr 6 Developing responsive Mobile Sites 137 PART III MobIlE APPlICATIonS ChAptEr 7 patterns of Mobile Application Development 173 ChAptEr 8 Developing for iOS 207 ChAptEr 9 Developing for Android 267 ChAptEr 10 Developing for Windows phone 323 ChAptEr 11 Developing with phoneGap 381 Index 417 Contents Introduction xiii PART I GoInG MobIlE Chapter 1 Pillars of a Mobile Strategy 3 What Does “Going Mobile” Mean? ..................................4 Toward a Mobile Strategy 4 Defining a Mobile Strategy 7 Development and Costs 10 Outlining a B2C Strategy ..........................................13 Focus on Your Audience 13 Delivery Models 16 Outlining a B2B Strategy ..........................................19 Serve Your (Limited) Audience 19 Mobile Enterprise Application Platforms 21 Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 Chapter 2 Mobile Sites vs. native Applications 25 Not a Pointless Matter ............................................26 A False Dilemma—but True Differences 26 Reasons for the Perceived Dilemma 31 Aspects of Mobile Sites ...........................................33 What’s Good About Mobile Sites 33 What’s Bad About Mobile Sites 34 What do you think of this book? We want to hear from you! Microsoft is interested in hearing your feedback so we can continually improve our books and learning resources for you. to participate in a brief online survey, please visit: www.microsoft.com/learning/booksurvey/ vii Aspects of Native Applications ....................................37 What’s Good About Native Applications 37 What’s Bad About Native Applications 38 Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40 PART II MobIlE SITES Chapter 3 Mobile Architecture 43 Focusing on Mobile Use-Cases ....................................44 Stereotypes to Refresh 44 Analysis First 46 Mobile-Specific Development Issues ................................51 Toward a Mobile Application Layer 51 Server-Side Device Detection 57 Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 Chapter 4 building Mobile Websites 63 From Web to Mobile .............................................64 Application Structure 64 Amount of JavaScript 67 Application Device Profiles 69 Optimizing the Payload 71 The Offline Scenario 75 Development Aspects of a Mobile Site ..............................76 Reaching the Mobile Site 76 Design of the Mobile Views 82 Testing the Mobile Site 88 The Device-Detector Site .........................................90 Routing to Mobile Views 91 Detecting Device Capabilities 93 Putting the Site Up 98 Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104 viii Contents

Description:
Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. Chapter 2 Mobile Sites vs. native Applications. 25 . NET Framework on iOS.
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.