Tải bản đầy đủ (.pdf) (7 trang)

a0029 oreilly mobile development with csharp may 201 morebook vn 6381

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (5.33 MB, 7 trang )



Download from Wow! eBook <www.wowebook.com>

Mobile Development with C#

Greg Shackles

Beijing • Cambridge • Farnham • Kưln • Sebastopol • Tokyo


Mobile Development with C#
by Greg Shackles
Copyright © 2012 Greg Shackles. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles (). For more information, contact our
corporate/institutional sales department: 800-998-9938 or

Editor: Rachel Roumeliotis
Production Editor: Iris Febres
Proofreader: Iris Febres

Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Robert Romano

Revision History for the First Edition:
2012-05-04
First release


See for release details.

Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. Mobile Development with C#, the Caspian tern, and related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.

ISBN: 978-1-449-32023-2
[LSI]
1336160978


Table of Contents

Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
1. Surveying the Landscape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
The Players
iOS
Android
Windows Phone
Write Once, Run Anywhere
An Alternative Approach
Summary

1
1
2

2
2
4
7

2. Hello, Platforms! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
iOS
What Is MonoTouch?
Create the Application
Android
Mono for Android
Create the Application
Windows Phone
Create the Application
Summary

9
10
12
22
22
25
36
36
46

3. Code Sharing Techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Project Setup
File Linking
Abstraction

Observer Pattern
Partial Classes
Conditional Compilation
Summary

48
49
52
54
56
58
60

iii


About the Author
Greg Shackles is a senior software engineer at OLO Online Ordering, based in New
York City. An active member of the community, Greg speaks regularly at many user
groups and regional events. Greg received both bachelor’s and master’s degrees in
computer science from Stony Brook University. In addition to his passion for
technology, he is also an avid fan of heavy metal, baseball, and craft beer, sometimes
in combination. His blog, which focuses mainly on .NET and related topics, can be
found at .


Download from Wow! eBook <www.wowebook.com>




×