Transcript Document
Build xPlat Client Apps PhoneGap vs Xamarin Joe Homnick Network with me on FaceBook, LinkedIn and Twitter Agenda The three big mobile platforms Native development tools Native development concepts Xamarin: C# on 3 billion devices Xamarin tools and workflow PhoneGap and other HTML5 hybrids PhoneGap tools and workflow Pros and cons and when to use what Mobile Platforms iOS Android • Storyboards • Objective C • Xcode • XML-based UI • Java • Eclipse/Android Studio/IntelliJ IDEA Windows Phone/Windows 8 • XAML-based UI • C#, VB, C++, JavaScript • Visual Studio Earlier, 4% OS Versions iOS 6, 22% Windows Phone 7.x, 30% iOS 7, 74% Froyo (2.2), 1.60% Windows Phone 8, 70% KitKat (4.4), 1.10% Gingerbread (2.3.x), 24.10% Honeycomb (3.x), 0.10% ICS (4.0.x), 18.60% JellyBean (4.14.3), 54.50% Mobile Market Share IDC: World-Wide Smartphone Shipments (Millions of Units) Quarter Android[ iOS BlackBerry OS Windows Phone Other Total 2013 Q4[ 226.1 51.0 1.7 8.8 2.0 289.6 Mobile Browse Usage iOS Basic Concepts Foundation/UIKit View controllers Storyboards and segues Table views Android Basic Concepts Android SDK Activities Intents ListViews and adapters Windows Runtime Basic Concepts .NET Framework Pages Navigation ListViews and binding Xamarin Founded in 2011 by Novell ex-employees Based on the Mono project – launched on 2001 Brings the .NET Framework to Linux and OS X Xamarin took it to the next step: all major platforms – iOS, Android, Linux, OS X Officially partnered with Microsoft Over 460,000 developers live, 20,000 paying customers, 120 consulting partners Used by more than 20% of Fortune 500 companies Why Xamarin? Reuse your company’s current development investment Keep using Visual Studio (or Xamarin Studio) Same-day support for all new API’s 100% platform API coverage All latest C# goodness – LINQ, async\await, TPL Average of 75% code sharing! Scan your code for conformance: scan.xamarin.com Xamarin Application Architecture PhoneGap PhoneGap is an open source mobile development framework Developed by Nitobi Software Purchased by Adobe Renamed to Cordova after the shift to Adobe Enables building mobile device applications using the Web technology stack – HTML, CSS, and JavaScript Hybrid Apps A PhoneGap application is considered hybrid They are neither truly native, nor purely web-based All layout rendering is done via the Web View Supports 7 platforms What Is PhoneGap All About? Getting Started with PhoneGap Set up your development environment PC, Mac Xcode, Eclipse, Visual Studio SDKs, JDKs, plug-ins Same as for Native Development Adobe® PhoneGap™ Build – upload your HTML5, CSS, and JavaScript assets to a cloud service which does the work of compiling for you Summary Native development tools and concepts The Xamarin promise PhoneGap and HTML5 apps