cross-platform development with xamarin

20

Click here to load reader

Upload: trivadis

Post on 07-May-2015

348 views

Category:

Technology


3 download

DESCRIPTION

Cross-Platform Development with Xamarin

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 Development

with Xamarin Thomas Claudius Huber

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

1

Page 2: Cross-Platform Development with Xamarin

2014 © Trivadis

02.04.2014 Introduction 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.2014 Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

3

Mobile Leads

Page 4: 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.2014 Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

4

Cross-Platform Development with Xamarin

Page 5: Cross-Platform Development with Xamarin

2014 © Trivadis

Expensive to staff multiple platform-

specific teams

Expensive to maintain multiple code

bases

Slows innovation

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

5

Silo Approach: Build Apps Multiple Times

Page 6: Cross-Platform Development with Xamarin

2014 © Trivadis

Poor user experience

API coverage

Performance

High abandonment rates

Wasted investment

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

6

Write-once-run-anywhere Approach

Black Box

Page 7: 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.2014 Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

7

Xamarin’s Unique Approach

Page 8: 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.2014 Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

8

Cross-Platform Development with Xamarin

Page 9: Cross-Platform Development with Xamarin

2014 © Trivadis

Commercial License Open Source License / Free available

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

9

From .NET to Xamarin

Windows

.NET Framework

Linux

Mono

iOS

MonoTouch

Android

Mono for Android

iOS

Xamarin.iOS

Android

Xamarin.Android

Page 10: Cross-Platform Development with Xamarin

2014 © Trivadis

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

10

.NET for Linux

Windows Kernel

.NET Runtime (CLR)

.NET APIs

Application

Linux Kernel

Mono Runtime

.NET APIs

Page 11: Cross-Platform Development with Xamarin

2014 © Trivadis

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

11

.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 12: Cross-Platform Development with Xamarin

2014 © Trivadis

Application

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

12

.NET for iOS

iOS

Mono Runtime

Runtimes are not allowed

Application Code

.NET

APIs

iOS

Bindings

Page 13: Cross-Platform Development with Xamarin

2014 © Trivadis

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

13

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 14: 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.2014 Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

14

Cross-Platform Development with Xamarin

Page 15: Cross-Platform Development with Xamarin

2014 © Trivadis

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

15

Get started

Download Tools:

http://store.xamarin.com

Page 16: Cross-Platform Development with Xamarin

2014 © Trivadis

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

16

DEMO

Page 17: 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.2014 Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

17

Cross-Platform Development with Xamarin

Page 18: 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.2014 Introduction into Cross-Platform Development with Xamarin ::: Thomas Claudius Huber

18

Summary of Xamarin

Page 19: Cross-Platform Development with Xamarin

2014 © Trivadis

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

19

Verlosung

Page 20: 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 Development

with Xamarin

Thomas Huber

[email protected]

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

20