Top Banner
Cross Platform Mobile Development using Xamarin and C# Develop your iOS, Android, Windows Phone apps with .NET and C# Alexey Strakh, EastBanc Technologies
29

Cross-platform mobile development using Xamarin and C#

May 07, 2015

Download

Technology

Alexey Strakh

Recent increase in demand of the cross-platform mobile development born a few great technologies. Some of them are good, others are not, but just few of them provides native platform experience. Hybrid applications work great in this case. Taking into account responsive design makes it even better. However, users do not need “just functionality” and responsive layout any more. They need, even demand great user experience, which should be attractive, convenient, powerful, responsive and unique. During this session, I want to tell you how Xamarin and Mono help to deliver native experience for iOS, Android, Windows Phone platforms having most of your code reused between platforms and written in C#.

This session will give you an overview of cross-platform development basics for iOS, Android and Windows Phone platforms using Xamarin, .NET and C#
You will know:
- Xamarin concept. MonoTouch & MonoDroid
- Developing under Windows & Mac. Environment requirements.
- Visual Studio vs Xamarin Studio
- MvvmCross libraries
- Utilization of Portable Class Libraries & Project Links for better code sharing
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Cross-platform mobile development using Xamarin and C#

Cross Platform Mobile Development using Xamarin and C#Develop your iOS, Android, Windows Phone apps with .NET and C# Alexey Strakh, EastBanc Technologies

Page 2: Cross-platform mobile development using Xamarin and C#

Agenda

•Mono and Xamarin•Cross Platform Environment and IDEs•Why C#?• Share your code•Automated UI Testing

Page 3: Cross-platform mobile development using Xamarin and C#

The “Build Apps Multiple Times” Approach

• Platform-specific• Multiple codebases• Slow innovation• Expensive

Page 4: Cross-platform mobile development using Xamarin and C#

The “Write-Once-Run-Anywhere” Approach

• Poor user experience• Not Complete API Coverage• High abandonment rates

Page 5: Cross-platform mobile development using Xamarin and C#
Page 6: Cross-platform mobile development using Xamarin and C#

The “Write Cross Platform” Approach

Page 7: Cross-platform mobile development using Xamarin and C#

Xamarin

• Native UI• Native Performance• Full API Coverage• Shared codebase• Re-use skills, teams, tools and CODE

Page 8: Cross-platform mobile development using Xamarin and C#

DEMO

“Hello World” app for iOS, Android and Windows Phone

Page 9: Cross-platform mobile development using Xamarin and C#

How it works

•Xamarin.iOS and Xamarin.Android•Ahead of Time Compiler for iOS•Compile and Link for Android•Windows Phone & Windows 8

Page 10: Cross-platform mobile development using Xamarin and C#

Xamarin exposes 100% of the native APIs for iOS and Android

Page 11: Cross-platform mobile development using Xamarin and C#

Anything you can do in Objective-C or Java can be done in C# with Xamarin

Page 12: Cross-platform mobile development using Xamarin and C#

100% API Coverage

Native SDK Bindings

Page 13: Cross-platform mobile development using Xamarin and C#

Cross Platform Environment•Windows 8•Mac OS X

Page 14: Cross-platform mobile development using Xamarin and C#

IDEs

•Xamarin Studio•Visual Studio Nuget,

Resharper, Component Store ALM (TFS)

Page 15: Cross-platform mobile development using Xamarin and C#

Why C#?

Page 16: Cross-platform mobile development using Xamarin and C#

Simple Http Request

Page 17: Cross-platform mobile development using Xamarin and C#

Why C#

•C# Syntax•LINQ•Task Parallel Library •Async

Page 18: Cross-platform mobile development using Xamarin and C#

Share your code

•Linked files•Conditional compilation•Portable Class Libraries

Page 19: Cross-platform mobile development using Xamarin and C#

Share your code approach

Page 20: Cross-platform mobile development using Xamarin and C#

DEMO

Share your code between iOS, Android and Windows Phone app

Page 21: Cross-platform mobile development using Xamarin and C#

Model-View-ViewModel

“Digitize” your view:

• Temperature• Date• Weather Image• Wind Speed• Actions

iPhone Android Windows Phone Mvvm

Page 22: Cross-platform mobile development using Xamarin and C#

MvvmCross

•Mvvm•Mvvm Cross Platform Framework•Databinding for Android (AXML) and iOS (XIB)

•Plugins (Dialogs, Emails, Location, etc)

Page 23: Cross-platform mobile development using Xamarin and C#

DEMO

Share even more code. MvvmCross

Page 24: Cross-platform mobile development using Xamarin and C#

Google Glass• Xamarin.Android supports Google Glass devices

• Glass Development Kit (Sneak Peek) at the Component Store

Page 25: Cross-platform mobile development using Xamarin and C#

Xamarin TestCloud

Automatically test your iOS and Android apps

• Start immediately• Hundreds of devices• Continuous Integration• Beautiful reports• Test for fragmentation• Object-based UI testing

Page 26: Cross-platform mobile development using Xamarin and C#
Page 27: Cross-platform mobile development using Xamarin and C#

Who uses Xamarin?

Page 28: Cross-platform mobile development using Xamarin and C#

Useful Links

• Xamarin Website http://xamarin.com• MvvmCross Jump Start https://github.com/MvvmCross/MvvmCross/wiki• Test Cloud http://xamarin.com/test-cloud• Google Glass Xamarin Component https://components.xamarin.com/view/googleglass

Page 29: Cross-platform mobile development using Xamarin and C#

Thank you! Questions?

Alexey Strakh@alexeystrakhhttp://[email protected]

http://eastbanctech.com http://xamarin.com http://east13.gomodev.com http://drmtm.us