Cross Platform, Native Mobile Application Development Using Xamarin and C#
-
Upload
shravan-kumar-kasagoni -
Category
Technology
-
view
490 -
download
1
Transcript of Cross Platform, Native Mobile Application Development Using Xamarin and C#
![Page 1: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/1.jpg)
Welcome to Microsoft User Group Hyderabad
January 2014 UG Meet
![Page 2: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/2.jpg)
Cross Platform, Native Mobile Application Development
Using Xamarin and C#
![Page 3: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/3.jpg)
Your Presenter
• Shravan Kumar Kasagoni
• Senior Mobile Web Software Engineer @ Thomson Reuters
• Microsoft MVP - ASP.NET/IIS
• http://theshravan.net
• @techieshravan
![Page 4: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/4.jpg)
Why Mobile?
![Page 5: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/5.jpg)
mobile is huge
![Page 6: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/6.jpg)
1 billion active mobile broadband subscriptions
![Page 7: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/7.jpg)
mobile is fast becoming the primary way people
browse the web
![Page 8: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/8.jpg)
mobile only web users
![Page 9: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/9.jpg)
Native Platform Languages
![Page 10: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/10.jpg)
Write Once, Run Anywhere?
!= !=
![Page 11: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/11.jpg)
C# to the rescue!
![Page 12: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/12.jpg)
How?
![Page 13: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/13.jpg)
![Page 14: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/14.jpg)
What is Mono?• Open source implementation of the .NET platform
created by Ximian (ECMA 334/335)
• 2001: Created to bring Windows applications to Linux
• 2003: Acquired by Novell with Ximian
• Matured at Novell in research mode; now a world-class runtime.
![Page 15: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/15.jpg)
Bringing .NET to Linux
Windows Linux
.NET Apps .NET Apps
Microsoft .NET Mono
![Page 16: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/16.jpg)
.NET on Android,iOS
Linux
Mono
iOS
Android
MonoTouch
Mono for Android
iOS
Xamarin.iOS
Android
Xamarin.Android
Free Software/Open Source License Commercial License
![Page 17: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/17.jpg)
Xamarin
• Founded in May 2011
• Xamarin has a perpetual license to all Mono IP: Copyrights, patents and trademarks
• Focused on mobile app development
![Page 18: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/18.jpg)
Bringing .NET to Android
Android Kernel
Mono Runtime
.NET APIs
Apps
Android Bindings
Dalvik Runtime
android.* java.*MCW
ACW
![Page 19: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/19.jpg)
Brining .NET to iOS
iOS
Mono Runtime
NO RUNTIMES ALLOWED
![Page 20: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/20.jpg)
Brining .NET to iOS
iOS
App
Application Code
.NET APIs iOS Bindings
![Page 21: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/21.jpg)
Anything you can do in Objective-C or Java can be
done in C# with Xamarin.
![Page 22: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/22.jpg)
![Page 23: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/23.jpg)
C# Development Environments
MAC OSX Windows
IDE Xamarin Studio Xamarin Studio VS + Xamarin Business Edition
iOS WORKS WORKS + MAC
Android WORKS WORKS WORKS
MAC WORKS
![Page 24: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/24.jpg)
Demo Time
![Page 25: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/25.jpg)
What Code Can Be Shared?
• Most non-UI or platform code
• Core application logic
• Entities
• LINQ (objects, XML)
• Network access (system.Net)
![Page 26: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/26.jpg)
Sharing Code Options• File Linking
• Portable Class Library
• Conditional Compilation
![Page 27: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/27.jpg)
Demo Time
![Page 28: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/28.jpg)
Reach Me
• http://theshravan.net
• @techieshravan
![Page 29: Cross Platform, Native Mobile Application Development Using Xamarin and C#](https://reader033.fdocuments.net/reader033/viewer/2022052821/554a4ac9b4c9055a408b569f/html5/thumbnails/29.jpg)
Thank You