Cross Platform
Android
iOS
Mac
Test Cloud

Building Cross Platform Applications

Best Practices for Developing Mobile Applications with Xamarin

This section discusses how to build applications using Xamarin, from understanding how Xamarin works to designing mobile apps and then testing and deploying to the various app stores.

Sharing Code Options

There are two options for sharing code between cross-platform mobile applications: Shared Asset Projects and Portable Class Libraries. These options are discussed here; more information on Portable Class Libraries and Shared Projects is also available.

Building Cross Platform Mobile Apps

Overview

Part 1 - Understanding the Xamarin Mobile Platform

Part 2 - Architecture

Part 3 - Setting Up a Xamarin Cross Platform Solution

Part 4 - Dealing with Mulitple Platforms

Part 5 - Practical Code Sharing Strategies

Part 6 - Testing and App Store Approvals

Case Studies

The principles outlined in this document are put into practice in the sample application Tasky Pro, as well as the pre-built applications Field Service and Employee Directory.

Tasky

Tasky is a simple to-do list application for iOS, Android and Windows Phone. It demonstrates the basics of creating a cross-platform application with Xamarin and uses a local SQLite database.

tasky list tasky detail

Read the Tasky Case Study.

Summary

This section has introduced Xamarin’s application development tools and discussed how to build applications that target multiple mobile platforms.

It covered a layered architecture that structures code for re-use across multiple platforms, and describes different software patterns that can be used within that architecture.

Examples are given of common application functions (like file and network operations) and how they can be built in a cross-platform way.

Finally it briefly discusses testing, and provides references to the case studies that put these principles into action.

Overview >>