Introduction to Xamarin C# Everywhere Vishal Sharma Corp-IT Introduction to Xamarin C# Everywhere
AGENDA What is Xamarin? Why Xamarin? Mobile Development Approaches Hybrid HTML VS Xamarin Environment Setup for Xamarin Exploring the Hello World Project AGENDA
What is Xamarin? Xamarin is a Microsoft-Owned, One Million Developers use Xamarin Products in more than 120 countries around the world. Xamarin is a cross-platform development tool. It solves dilemmas many developers face when developing cross-platform apps: separate coding languages and UI paradigms. With Xamarin, you can use C# for iOS, Android, and Universal Windows apps.
Why Xamarin? Xamarin enables developers to reach all major mobile platforms! Deliver native Android, iOS, and Windows apps, using existing skills, teams, and code. Native User Interface, Native Performance Native API Access (100%) Shared Code Across Platforms Note: our core WMS team learn and Build this code in C#.net, for UK we build Hybrid app with help of Jquery, CSS, JS, HTML5…
Shared Code Across Plateform Note: same code can run for all three platforms iOS, Windows
Mobile App Development Approaches Let’s talk about the state of mobile development today
Drawbacks of coding in Native … Build Apps Multiple Times Multiple Teams Multiple Code Bases Different toolsets Multiple Teams Multiple Code Bases Expensive & Slow Positive = Great apps delivered to user’s platform Negative = Development hampered by multiple code bases & fragmentation
Xamarin’s Unique Approach Native User Interface Native Performance Shared code across platforms C# & .NET Framework Full API Coverage UI build natively per platform, leveraging C# C# + XAML C# + XML C# + XIB One shared app logic code base, iOS, Android, Mac, Windows Phone, Windows Store, Windows
Mobile Plateform Stack UK App –Hybrid, LC App- Xamarin
Xamarin Native App VS Hybrid HTML App Let’s talk about the state of mobile development today
Making the Right Choice for the Enterprise Xamarin Native APP Hybrid HTML App True Native Compilation using JIT, AOT compilers (ahead of time) Not Real Native compilation as it uses Cordova Wrapper Works with the Latest SDK Need to wait for the new API to integrate Native UI Look as well as Behave Mimic Native UI No Browser comptability required Browser related issue persist as it uses Web View. Let’s talk a bit about C# and why it is awesome.
25 % Faster Cross Plateform Native apps started faster than the Hybrid HTML version Let’s talk a bit about C# and why it is awesome.
Cross Plateform Native apps loaded large datasets faster than Hybrid HTML app Let’s talk a bit about C# and why it is awesome.
-50 % Less Cross Plateform Native apps uses less memory than Hybrid HTML app Let’s talk a bit about C# and why it is awesome.
-76 % Less Cross Plateform Native apps uses less CPU time than Hybrid HTML app Let’s talk a bit about C# and why it is awesome.
Environment Setup for Xamarin Let’s talk about the state of mobile development today
Development Environment IDE Xamarin Studio Win PC or Mac Visual Studio 2015 with Xamarin (Free after March 2016) Xamarin Studio PC -> Android Mac -> iOS, Android, Mac Visual Studio: iOS, Android Windows
Android App Windows App iOS App A physical Windows 8 development machine (not virtual) with Visual Studio (2015 /2013) and Xamarin 4 installed A Mac with OS X Yosemite (10.10.5) or above, with XCode and Xamarin installed Xamarin Studio PC -> Android Mac -> iOS, Android, Mac Visual Studio: iOS, Android Windows
Development Environments MACOS WINDOWS Development Environment XAMARIN STUDIO VISUAL STUDIO Xamarin.iOS YES Yes (with Mac computer) No Xamarin.Android Yes Xamarin.Forms iOS & Android only Android, Windows, Windows Phone (iOS with Mac computer) Android only Xamarin.Mac Open project & compile only