Xamarin Cross-platform Application Development

Discover how to streamline the creation of mobile applications for Android and iOS with Xamarin. For C# developers, this book is the most practical way yet to start mastering cross-platform development.
Preview in Mapt

Xamarin Cross-platform Application Development

Jonathan Peppers

Discover how to streamline the creation of mobile applications for Android and iOS with Xamarin. For C# developers, this book is the most practical way yet to start mastering cross-platform development.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $26.99
Save 62%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$44.99
$29.99 p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Xamarin Cross-platform Application Development Book Cover
Xamarin Cross-platform Application Development
$ 26.99
$ 10.00
Xamarin: Cross-Platform Mobile Application Development Book Cover
Xamarin: Cross-Platform Mobile Application Development
$ 69.99
$ 10.00
Buy 2 for $20.00
Save $76.98
Add to Cart

Book Details

ISBN 139781849698467
Paperback262 pages

Book Description

Developing a mobile application for just one platform is becoming a thing of the past. Companies expect their apps to be supported on both iOS and Android, whilst leveraging the best native features of both. Xamarin’s tools help solve this requirement by giving developers a single toolset to target both platforms.

"Xamarin Cross-platform Application Development" is a step-by-step guide for building professional applications for iOS and Android. The book walks you through building a chat application, complete with a backend web service and native features such as GPS location, camera, and push notifications.

This book begins with iOS and Android application fundamentals, then moves on to sharing code, and eventually digs deeper into native functionality. By the end of the book, readers will have successfully built a cross-platform application ready for submitting to app stores. You will gain an in-depth knowledge about the concepts of building cross platform applications.

"Xamarin Cross-platform Application Development" also covers native iOS and Android APIs, unit testing, building a real web service with Windows Azure, push notifications, interacting with the camera and GPS, leveraging Java and Objective-C libraries, and finally app store submission. Towards the end of the book you will feel confident in developing your own Xamarin applications.

"Xamarin Cross-platform Application Development" will teach you everything you need to know to develop an end-to-end, cross-platform solution with Xamarin.

Table of Contents

Chapter 1: Xamarin Setup
The Xamarin tools
Installing Xcode
Installing Xamarin
Setting up the Android emulator
Enrolling in the iOS Developer Program
Registering as a Google Play developer
Summary
Chapter 2: Hello Platforms!
Building your first iOS application
Understanding Apple's MVC pattern
Using Xcode and storyboards
Building your first Android application
Android activities
Xamarin's Android designer
Summary
Chapter 3: Code Sharing Between iOS and Android
Learning the MVVM design pattern
Comparing project organization strategies
Working with portable class libraries
Using preprocessor statements
Simplifying dependency injection
Implementing Inversion of Control
Summary
Chapter 4: XamChat – a Cross-platform App
Describing our sample application concept
Developing our model layer
Writing a mock web service
Writing the ViewModel layer
Writing unit tests
Summary
Chapter 5: XamChat for iOS
Understanding the basics of an iOS app
Using UINavigationController
Implementing the login screen
Using segues and UITableView
Adding a friends list screen
Adding a list of messages
Composing messages
Summary
Chapter 6: XamChat for Android
Introducing Android Manifest
Adding a login screen
Using ListView and BaseAdapter
Implementing the friends list
Composing messages
Summary
Chapter 7: Deploying and Testing on Devices
iOS provisioning
Android device settings
Understanding the linker
Understanding AOT compilation
Avoiding common memory pitfalls
Summary
Chapter 8: Web Services with Push Notifications
Learning Windows Azure
Setting up your Azure account
Exploring Azure Mobile Services
Creating tables and scripts
Adding a backend to XamChat
Using the Apple Push Notification service
Implementing Google Cloud Messaging
Summary
Chapter 9: Third-party Libraries
The Xamarin Component Store
Porting existing C# libraries
Objective-C bindings
Java bindings
Summary
Chapter 10: Contacts, Camera, and Location
Introducing Xamarin.Mobile
Accessing contacts
Looking up GPS location
Accessing the photo library and camera
Summary
Chapter 11: App Store Submission
Following the iOS App Store Review Guidelines
Submitting an app to the iOS App Store
Signing your Android applications
Submitting the app to Google Play
Tips for a successful mobile app
Summary

What You Will Learn

  • Familiarize yourself with Apple’s MVC design pattern
  • Understand the Android activity lifecycle
  • Share C# code across platforms
  • Implement a web service with Azure Mobile Services
  • Deploy and debug your application on mobile devices
  • Call native Objective-C or Java libraries from C#
  • Use Xamarin.Mobile for camera, contacts, and location
  • Submit your app to the Apple App Store and Google Play

Authors

Table of Contents

Chapter 1: Xamarin Setup
The Xamarin tools
Installing Xcode
Installing Xamarin
Setting up the Android emulator
Enrolling in the iOS Developer Program
Registering as a Google Play developer
Summary
Chapter 2: Hello Platforms!
Building your first iOS application
Understanding Apple's MVC pattern
Using Xcode and storyboards
Building your first Android application
Android activities
Xamarin's Android designer
Summary
Chapter 3: Code Sharing Between iOS and Android
Learning the MVVM design pattern
Comparing project organization strategies
Working with portable class libraries
Using preprocessor statements
Simplifying dependency injection
Implementing Inversion of Control
Summary
Chapter 4: XamChat – a Cross-platform App
Describing our sample application concept
Developing our model layer
Writing a mock web service
Writing the ViewModel layer
Writing unit tests
Summary
Chapter 5: XamChat for iOS
Understanding the basics of an iOS app
Using UINavigationController
Implementing the login screen
Using segues and UITableView
Adding a friends list screen
Adding a list of messages
Composing messages
Summary
Chapter 6: XamChat for Android
Introducing Android Manifest
Adding a login screen
Using ListView and BaseAdapter
Implementing the friends list
Composing messages
Summary
Chapter 7: Deploying and Testing on Devices
iOS provisioning
Android device settings
Understanding the linker
Understanding AOT compilation
Avoiding common memory pitfalls
Summary
Chapter 8: Web Services with Push Notifications
Learning Windows Azure
Setting up your Azure account
Exploring Azure Mobile Services
Creating tables and scripts
Adding a backend to XamChat
Using the Apple Push Notification service
Implementing Google Cloud Messaging
Summary
Chapter 9: Third-party Libraries
The Xamarin Component Store
Porting existing C# libraries
Objective-C bindings
Java bindings
Summary
Chapter 10: Contacts, Camera, and Location
Introducing Xamarin.Mobile
Accessing contacts
Looking up GPS location
Accessing the photo library and camera
Summary
Chapter 11: App Store Submission
Following the iOS App Store Review Guidelines
Submitting an app to the iOS App Store
Signing your Android applications
Submitting the app to Google Play
Tips for a successful mobile app
Summary

Book Details

ISBN 139781849698467
Paperback262 pages
Read More

Read More Reviews

Recommended for You

iOS Development with Xamarin Cookbook Book Cover
iOS Development with Xamarin Cookbook
$ 29.99
$ 10.00
Pluggable Authentication Modules: The Definitive Guide to PAM for Linux SysAdmins and C Developers Book Cover
Pluggable Authentication Modules: The Definitive Guide to PAM for Linux SysAdmins and C Developers
$ 11.99
$ 8.40
CherryPy Essentials: Rapid Python Web Application Development Book Cover
CherryPy Essentials: Rapid Python Web Application Development
$ 23.99
$ 10.00
Enhancing Microsoft Content Management Server with ASP.NET 2.0 Book Cover
Enhancing Microsoft Content Management Server with ASP.NET 2.0
$ 22.99
$ 10.00
PySide GUI Application Development Book Cover
PySide GUI Application Development
$ 20.99
$ 10.00
MediaWiki Administrators' Tutorial Guide Book Cover
MediaWiki Administrators' Tutorial Guide
$ 23.99
$ 10.00