cross-platform development with xamarin

21
2014 © Trivadis BASEL BERN BRUGG LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN 2014 © Trivadis Cross-Platform Development with Xamarin Thomas Claudius Huber 02.04.2014 Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber 1

Upload: aelwen

Post on 23-Mar-2016

102 views

Category:

Documents


2 download

DESCRIPTION

Cross-Platform Development with Xamarin. Thomas Claudius Huber. Thomas Claudius Huber. > Principal Consultant @ Trivadis AG >> Trainer , Coach, Developer, Architect >> www.thomasclaudiushuber.com > Specializes in WPF , XAML, WinApps >> Author of several books - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Cross-Platform Development with  Xamarin

2014 © Trivadis

BASEL BERN BRUGG LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN

2014 © Trivadis

Cross-Platform Developmentwith XamarinThomas Claudius Huber

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

1

Page 2: Cross-Platform Development with  Xamarin

2014 © Trivadis

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

2

> Principal Consultant @ Trivadis AG>> Trainer, Coach, Developer, Architect>> www.thomasclaudiushuber.com

> Specializes in WPF, XAML, WinApps>> Author of several books

> Develops native Apps for major mobile platforms: Windows Phone, Android, iOS

Thomas Claudius Huber

Page 3: Cross-Platform Development with  Xamarin

2014 © Trivadis

Multi Platform

Android 4

iOS 7

WinPhone 7.5 / 8

Win 8/RT

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

3

Mobile Leads

Page 4: Cross-Platform Development with  Xamarin

2014 © Trivadis

Architecture

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

4

TrivadisAzureClients

Leads Everywhere

Outlook

OCRService

CRM Connector

SAP

Dynamics

In

Progress

Page 5: Cross-Platform Development with  Xamarin

2014 © Trivadis

Shared code

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

5

19% 2

2%

389%

114%

286%

19%

291%

113%

287%

Page 6: Cross-Platform Development with  Xamarin

2014 © Trivadis

1. Xamarin’s Approach

2. Bringing .NET to Android/iOS

3. Develop a small cross platform application

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

6

Cross-Platform Development with Xamarin

Page 7: Cross-Platform Development with  Xamarin

2014 © Trivadis

Expensive to staff multiple platform-specific teams

Expensive to maintain multiple code bases

Slows innovation

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

7

Silo Approach: Build Apps Multiple Times

Page 8: Cross-Platform Development with  Xamarin

2014 © Trivadis

Poor user experience API coverage Performance

High abandonment rates

Wasted investment

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

8

Write-once-run-anywhere Approach

Black Box

Page 9: Cross-Platform Development with  Xamarin

2014 © Trivadis

Fully native apps written in C# Native UI, Native Performance Anything you can do in Objective-C

and Java can be done in Xamarin

Re-use existing skills, teams, tools and code

Share on average 75% source code across platforms

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

9

Xamarin’s Unique Approach

Page 10: Cross-Platform Development with  Xamarin

2014 © Trivadis

1. Xamarin’s Approach

2. Bringing .NET to Android/iOS

3. Develop a small cross platform application

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

10

Cross-Platform Development with Xamarin

Page 11: Cross-Platform Development with  Xamarin

2014 © Trivadis

Commercial LicenseOpen Source License / Free available

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

11

From .NET to Xamarin

Windows

.NET Framework

Linux

Mono

iOS

MonoTouch

Android

Mono for Android

iOS

Xamarin.iOS

Android

Xamarin.Android

Page 12: Cross-Platform Development with  Xamarin

2014 © Trivadis

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

12

.NET for Linux

Windows Kernel

.NET Runtime (CLR)

.NET APIs

Application

Linux Kernel

Mono Runtime

.NET APIs

Page 13: Cross-Platform Development with  Xamarin

2014 © Trivadis

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

13

.NET for Android

Android Kernel

Mono Runtime

.NET APIs

Application

Dalvik Runtime

android.* java.*Android Bindings MCW

ACW

MCW = Mono Callable Wrapper

ACW = Android Callable Wrapper

Page 14: Cross-Platform Development with  Xamarin

2014 © Trivadis

Application

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

14

.NET for iOS

iOS

Mono Runtime

Runtimes are not allowed

Application Code

.NET APIs

iOSBindings

Page 15: Cross-Platform Development with  Xamarin

2014 © Trivadis

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

15

Xamarin App Development Overview

Xamarin.iOS does full Ahead Of Time (AOT) compilation to produce an ARM binary suitable for Apple’s App Store.

Xamarin.Android takes advantage of Just In Time (JIT) compilation on the Android device.

Page 16: Cross-Platform Development with  Xamarin

2014 © Trivadis

1. Xamarin’s Approach

2. Bringing .NET to Android/iOS

3. Develop a small cross platform application

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

16

Cross-Platform Development with Xamarin

Page 17: Cross-Platform Development with  Xamarin

2014 © Trivadis

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

17

Get started

Download Tools:http://store.xamarin.com

Page 18: Cross-Platform Development with  Xamarin

2014 © Trivadis

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

18

DEMO

Page 19: Cross-Platform Development with  Xamarin

2014 © Trivadis

1. Xamarin’s Approach

2. Bringing .NET to Android/iOS

3. Develop a small cross platform application

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

19

Cross-Platform Development with Xamarin

Page 20: Cross-Platform Development with  Xamarin

2014 © Trivadis

provides .NET-based access to Android and iOS API

allows development in Visual Studio with Business or Enterprise edition for iOS a Mac is needed to create UI and to compile

allows a common code-basis for all platforms

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

20

Summary of Xamarin

Page 21: Cross-Platform Development with  Xamarin

2014 © Trivadis

Fragen und Antworten...

2013 © Trivadis

BASEL BERN BRUGG LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN

Cross Platform Developmentwith Xamarin

Thomas Claudius [email protected]@thomasclaudiush

02.04.2014Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

21