Xamarin 4.x Cross-Platform Application Development - Third Edition
eBook - ePub

Xamarin 4.x Cross-Platform Application Development - Third Edition

Jonathan Peppers

Share book
  1. 292 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Xamarin 4.x Cross-Platform Application Development - Third Edition

Jonathan Peppers

Book details
Book preview
Table of contents
Citations

About This Book

Develop powerful cross-platform applications with XamarinAbout This Book• Write native cross-platform applications with Xamarin• Design user interfaces that can be shared across Android, iOS, and Windows Phone using Xamarin.Forms• Practical cross-platform development strategiesWho This Book Is ForIf you are a developer with experience in C# and are just getting into mobile development, this is the book for you. This book will give you a head start with cross-platform development and will be the most useful to developers who have experience with desktop applications or the web.What You Will Learn• Apple's MVC design pattern• The Android activity lifecycle• Share C# code across platforms and call native Objective-C or Java libraries from C#• Create a real web service back end in Windows Azure using SQL Azure as database storage• Set up third-party libraries such as NuGet and Objective Sharpie in many different ways, and port a desktop.NET library to Xamarin• Use Xamarin.Mobile for camera, contacts, and locationIn DetailXamarin is a leading cross-platform application development tool used by top companies such as Coca-Cola, Honeywell, and Alaska Airlines to build apps. Version 4 features significant updates to the platform including the release of Xamarin.Forms 2.0 and improvements have been made to the iOS and Android designers. Xamarin was acquired by Microsoft so it is now a part of the Visual Studio family.This book will show you how to build applications for iOS, Android, and Windows. You will be walked through the process of creating an application that comes complete with a back-end web service and native features such as GPS location, camera, push notifications, and other core features. Additionally, you'll learn how to use external libraries with Xamarin and Xamarin.Forms to create user interfaces. This book also provides instructions for Visual Studio and Windows.This edition has been updated with new screenshots and detailed steps to provide you with a holistic overview of the new features in Xamarin 4. Style and approachThis book offers a tutorial style approach to teach you the skills required to develop end-to-end cross-platform solutions with Xamarin.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Xamarin 4.x Cross-Platform Application Development - Third Edition an online PDF/ePUB?
Yes, you can access Xamarin 4.x Cross-Platform Application Development - Third Edition by Jonathan Peppers in PDF and/or ePUB format, as well as other popular books in Informatik & Programmierung von Mobilgeräten. We have over one million books available in our catalogue for you to explore.

Information

Year
2016
ISBN
9781786469915

Xamarin 4.x Cross-Platform Application Development - Third Edition


Xamarin 4.x Cross-Platform Application Development - Third Edition

Copyright Š 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: February 2014
Second edition: February 2015
Third edition: December 2016
Production reference: 1201216
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78646-541-2
www.packtpub.com

Credits

Author
Jonathan Peppers
Copy Editor
Safis Editing
Reviewer
Esteban Solano Granados
Project Coordinator
Devanshi Doshi
Commissioning Editor
Ashwin Nair
Proofreader
Safis Editing
Acquisition Editor
Reshma Raman
Indexer
Tejal Daruwale Soni
Content Development Editor
Narendrakumar Tripathi
Graphics
Jason Monteiro
Technical Editor
Anushree Arun Tendulkar
Production Coordinator
Aparna Bhagat

About the Author

Jonathan Peppers is a Xamarin MVP and lead developer on popular apps and games at Hitcents such as the Hanx Writer (for Tom Hanks) and the Draw a Stickman franchise. Jon has been working with C# for over 10 years working on a wide range of projects at Hitcents. Jon began his career working Self-Checkout software written in WinForms and later migrated to WPF. Over his career, he has worked with many .NET-centric technologies such as ASP.Net WebForms, MVC, Windows Azure, WinRT/UWP, F#, and Unity3D.
In recent years, Hitcents has been heavily investing in mobile development with Xamarin, and has development over 50 mobile applications across multiple platforms.
I would like to thank my wife, Amy Kate, and my son, Levi, for giving me the free time to write this book. You are both my inspiration and "why I do what I do".

About the Reviewer

Esteban Solano Granados is a senior software engineer, Microsoft and Xamarin MVP from Cartago, Costa Rica and he enjoys learning, talk, and help others to learn about software development for the web and mobile by using his knowledge of JavaScript and C# with Xamarin, Asp.Net, NodeJS and other technologies.

www.PacktPub.com

For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
www.PacktPub.com
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.

Why subscribe?

  • Fully searchable across every book published by Packt
  • Copy and paste, print, and bookmark content
  • On demand and accessible via a web browser

Customer Feedback

Thank you for purchasing this Packt book. We take our commitment to improving our content and products to meet your needs seriously—that's why your feedback is so valuable. Whatever your feelings about your purchase, please consider leaving a review on this book's Amazon page. Not only will this help us, more importantly it will also help others in the community to make an informed decision about the resources that they invest in to learn.
You can also review for us on a regular basis by joining our reviewers' club. If you're interested in joining, or would like to learn more about the benefits we offer, please contact us: [email protected]

Preface

Xamarin has built great products for developing iOS and Android applications in C#: Xamarin Studio, an addin for Visual Studio, Xamarin.iOS, and Xamarin.Android. Xamarin gives you direct access to the native APIs on each platform and the flexibility of sharing C# code. Using Xamarin and C#, you get better productivity when compared to Java or Objective-C, and still retain great performance compared to an HTML or JavaScript solution.
In this book, we will develop a real-world sample application to demonstrate what you can do with Xamarin technologies, and build on core platform concepts for iOS and Android. We will also cover advanced topics such as push notifications, retrieving contacts, using the camera, and GPS location. With Xamarin 3, a new framework was introduced called Xamarin.Forms. We will cover the basics of Xamarin.Forms and how you can apply it to cross-platform development. Finally, we will walkthrough what it takes to submit your application to the Apple App Store and Google Play.

What this book covers

Chapter 1, Xamarin Setup, is a guide for installing the appropriate Xamarin software and native SDKs for doing cross-platform development. Directs Windows users on how to connect to a Mac on their local network for doing iOS development in Visual Studio.
Chapter 2, Hello, Platforms!, is a walkthrough of creating a simple calculator application on iOS and Android, which also covers some basic concepts on each platform.
Chapter 3, Code Sharing between iOS and Android, is an introduction of code sharing techniques and project setup strategies that can be used with Xamarin.
Chapter 4, XamSnap - A Cross-Platform App, is an introduction to a sample application we will be building throughout the book. In this chapter we will write all the shared code for the application complete with unit tests.
Chapter 5, XamSnap for iOS, shows us how to implement the iOS user interface for XamSnap and cover various iOS development concepts.
Chapter6, XamSnap for Android, shows us how to implement the Android version of XamSnap and introduce Android-specific development concepts.
Chapter 7, Deploying and Testing on Devices, is a walkthrough the painful process of deploying your first application to a device. We also cover why it is important to always test your application on real devices.
Chapter 8, Contacts, Camera, and Location, introduces the library, Xamarin.Mobile, as a cross-platform way to access users’ contacts, camera, and GPS location and add these features to our XamSnap application.
Chapter 9, Web Services with Push Notifications, shows us how to implement a real backend web service for XamSnap using Windows Azure leveraging Azure Functions and Azure Notification Hubs.
Chapter 10, Third-Party Libraries, covers the various options of using third party libraries with Xamarin and how you can even leverage native Java and Objective-C libraries.
Chapter 11, Xamarin.Forms, helps us discover Xamarin's latest framework, Xamarin.Forms, and how you can leverage it to build cross-platform applications.
Chapter 12, App Store Submission, will walk us thr...

Table of contents