CrossPlatform Development with Xamarin Thomas Claudius Huber BASEL
Cross-Platform Development with Xamarin Thomas Claudius Huber BASEL 1 BERN BRUGG LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A. M. FREIBURG I. BR. 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014 HAMBURG MÜNCHEN STUTTGART WIEN
Thomas Claudius Huber > Principal Consultant @ Trivadis AG >> Trainer, Coach, Developer, Architect >> www. thomasclaudiushuber. com > Specializes in WPF, XAML, Win. Apps >> Author of several books > Develops native Apps for major mobile platforms: Windows Phone, Android, i. OS 2 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
Mobile Leads Multi Platform § Android 4 § i. OS 7 § Win. Phone 7. 5 / 8 § Win 8/RT 3 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
Architecture Clients Azure Trivadis Outlook Leads Everywhere SAP CRM Connecto r OCR Service ss re g In 4 o Pr 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014 Dynamics
Shared code 1 9% 1 14% 3 89% 2 86% 1 13% 1 9% 2 91% 5 2 2% 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014 2 87%
Cross-Platform Development with Xamarin 1. Xamarin’s Approach 2. Bringing. NET to Android/i. OS 3. Develop a small cross platform application 6 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
Silo Approach: Build Apps Multiple Times § Expensive to staff multiple platformspecific teams § Expensive to maintain multiple code bases § Slows innovation 7 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
Write-once-run-anywhere Approach § Poor user experience § API coverage § Performance § High abandonment rates § Wasted investment Black Box 8 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
Xamarin’s Unique Approach § 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 9 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
Cross-Platform Development with Xamarin 1. Xamarin’s Approach 2. Bringing. NET to Android/i. OS 3. Develop a small cross platform application 10 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
From. NET to Xamarin Linux i. OS Mono. Touch Xamarin. i. OS Android Mono for Android Xamarin. Android Mono Open Source License / Free available Windows. NET Framework 11 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014 Commercial License
. NET for Linux Application 12 . NET APIs . NET Runtime (CLR) Mono Runtime Windows Kernel Linux Kernel 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
. NET for Android MCW = Mono Callable Wrapper ACW = Android Callable Wrapper Application. NET APIs Android Bindings Mono Runtime MCW android. * ACW Dalvik Runtime Android Kernel 13 java. * 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
. NET for i. OS Runtimes are not allowed Application Code. NET i. OS APIs Bindings Mono Runtime i. OS 14 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
Xamarin App Development Overview Xamarin. i. OS does full Ahead Of Time (AOT) compilation to produce an ARM binary suitable for Apple’s App Store. 15 Xamarin. Android takes advantage of Just In Time (JIT) compilation on the Android device. 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
Cross-Platform Development with Xamarin 1. Xamarin’s Approach 2. Bringing. NET to Android/i. OS 3. Develop a small cross platform application 16 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
Get started Download Tools: http: //store. xamarin. com 17 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
DEMO 18 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
Cross-Platform Development with Xamarin 1. Xamarin’s Approach 2. Bringing. NET to Android/i. OS 3. Develop a small cross platform application 19 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
Summary of Xamarin § provides. NET-based access to Android and i. OS API § allows development in Visual Studio § with Business or Enterprise edition § for i. OS a Mac is needed to create UI and to compile § 20 allows a common code-basis for all platforms 2014 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014
Fragen und Antworten. . . Cross Platform Development with Xamarin Thomas Claudius Huber thomas. huber@trivadis. com @thomasclaudiush BASEL 21 BERN BRUGG LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A. M. FREIBURG I. BR. 2014 2013 © Trivadis Introduction into Cross-Platform Development with Xamarin : : : Thomas Claudius Huber 02. 04. 2014 HAMBURG MÜNCHEN STUTTGART WIEN
- Slides: 21