Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

SydMobDev Feb 2014 - Cross Platform Native App Development with Xamarin and MvvmCross


Published on

Sydney Mobile .Net Developers Meetup - Feb 2014

Published in: Technology
  • Be the first to like this

SydMobDev Feb 2014 - Cross Platform Native App Development with Xamarin and MvvmCross

  1. 1. Sydney Mobile .Net Developers Cross Platform Native App Development iOS, Android, Windows Phone, Windows 8 Alec Tucker Head of Mobile Product Development, APAC White Clarke Group
  2. 2. Inaugural Meetup • Introductions • Focus on Mobile, .Net, Xamarin • Planned format • Group Details • • • Current sponsors…
  3. 3. Leaders in Finance Technology (also pretty good at supplying venue and pizza!!)
  4. 4. • Sign up at • Learn to build native iOS, Android, and Windows apps with C# in just 30 days. • Live online, interactive classes with live coding. • Labs with full source code solutions. • Nearly 600 pages of curriculum documentation. • Access to Xamarin Certified Developer exam. • First March session is filling up fast.
  5. 5. Nokia & Microsoft • Vaughn Knight, Nokia Australia
  6. 6. The Plan • Approaches to Cross Platform Mobile Dev • WORA / WOOE • Cross Platform AND Native • Code Sharing Approaches • File Linking • Portable Class Libraries • MVVM Pattern Suitability • Using MVVM in iOS and Android Apps
  7. 7. Android Fragmentation July 2012 – 3,997 distinct devices July 2013 – 11,868 distinct devices Source:
  8. 8. Android Fragmentation Source:
  9. 9. OS Versions Out There (iOS & Android) Source:
  10. 10. Screen Sizes (iOS and Android) iOS – Distinct Screen Sizes Android – Distinct Screen Sizes Source:
  11. 11. Approaches • App dev – multiple platforms • Mobile Web  Hybrid  Native • Historically native has been overlooked as it’s assumed to mean developing separately for each platform • Cross platform AND native…
  12. 12. Cross Platform AND Native Xamarin Write one shared C# codebase, and separate platform-specific user interfaces also in C#. The result is native apps that share business logic, data access, networking code and more. Compilation Xamarin.iOS does ahead-of-time compilation to produce ARM binaries for Apple’s App Store. Xamarin.Android uses just-in-time compilation. In both cases the app is native. Not cross compiled. Not interpreted. Native.
  13. 13. Code Sharing Approaches • File linking • Quick demo • Pros • Shared code can be put within precompiler directives to control which bits are compiled for which platforms • Can be used to implement platform specific code / features • Cons • Can seem like a good idea, but you can quickly come unstuck and end up with unmaintainable code…
  14. 14. (shamelessly pinched from James Montemagno’s presentation at the Seattle Mobile .Net Developers meetup)
  15. 15. Code Sharing Approaches • Portable Class Library (PCL) • Quick demo
  16. 16. MVVM Pattern Views Platform specific UI – how to display information Data Binding View Models What information to display Flow of interaction Reference Models Data entities Portable
  17. 17. MvvmCross • Best illustrated with a demo
  18. 18. Questions / Discussion / Pizza
  19. 19. Contact Details / References Group NetDevelopers/ Xamarin Further Contacts Vaughan Knight – Nokia @vaughanknight MvvmCross Dave Glover – Microsoft Mvvm Background 010/11/14/mvvm-technicaldescription.aspx Andrew Coates – Microsoft Alec Tucker @alecdtucker UX Design Guidelines Apple /ios/documentation/userexperience /conceptual/mobilehig/ Android gn/index.html Windows Phone