SlideShare ist ein Scribd-Unternehmen logo
1 von 52
Enabling Developers to Create Native
iOS, Android, Mac, & Windows apps in C#
Presenter’s Name
Presenter’s Contact
Presenter’s Website
Presenter’s Twitter Handle
What is Xamarin?
• Xamarin enables developers to reach all major mobile platforms!
Native User Interface

Native Performance
Shared Code Across Platforms

C# & .NET Framework
Mobile Development Approaches
Silo’d Approach
Build Apps Multiple Times
• Multiple Teams
• Multiple Code Bases
• Different toolsets
Write Once, Run Anywhere Approach
• Lowest common denominator
• Browser fragmentation
Black Box

• Developing & designing for 1
platform, happen to get other
platforms
Xamarin’s Unique Approach
• Native User Interface
• Native Performance
• Shared code across platforms
• C# & .NET Framework
• Full API Coverage
Why C#?
C# Is Awesome
• LINQ Support

• Work With XML Easily XDocument

• Event Handling & Delegates
C# Is Awesome – JSON Made Easy
Json.NET offers simple conversions to and from JSON strings and .NET objects,
with SerializeObject and DeserializeObject methods.
See the Difference – Attributed Strings
Objective-C

C# with Xamarin
Probing for properties on an AudioFile
Objective-C

C# with Xamarin
See the Different – Android ItemClick
Java

C# with Xamarin

C# & Async with Xamarin
Async/Await

Write Beautiful & Maintainable Code
Why Xamarin?
Write Everything in C#

iOS, Android, Windows, Windows Phone, Mac
2.5+ Billion Devices!
Xamarin History

Over a Decade of Enterprise Production Use
500,000+
Reach 200,000
Developers
Developer
100+ Partners
Mark
100+ Components

2000

Ximian
Founded

2001

2003

2009

2011

Mono
Started

Ximian
Acquired
by Novell

First iOS
product (now
Xamarin.iOS)
launches

2013

Xamarin
Founded

2012

First
Xamarin 2.0
release of
Xamarin.Mac Component
First
Store
Release of
Launch
Evolve 2013
Xamarin.Android Partner
Program
Xamarin Test
Cloud
Microsoft
Partnership
100% API Coverage

Anything you can do in Objective-C or Java can be
done in C# and Visual Studio with Xamarin!
Native Performance

Xamarin.iOS does full Ahead Of Time
(AOT) compilation to produce an
ARM binary for Apple’s App Store.

Xamarin.Android takes advantage
of Just In Time (JIT) compilation on
the Android device.
Always Up to Date
Always up-to-date with the latest APIs from
Apple and Google.
Same-day support:
•

iOS 5

•

iOS 6

•

iOS 6.1

•

iOS 7
Code Sharing: Accelerate Development
• Up to 90% Code Reuse
• Leverage existing libraries

NuGet Support

Code-sharing stats from iCircuit, built with Xamarin and featured on the App Store.
Source: http://praeclarum.org/post/42378027611/icircuit-code-reuse-part-cinq
Portable Class Libraries
•
•
•

1 Assembly
Multiple Platforms
Including:
• Xamarin.Android
• Xamarin.iOS
Portable Class Libraries Features
•Centralized Code Sharing
•How you expect it to work
•Debug seamlessly into and
out of PCL

•Project/Assembly Sharing
•NuGet
PCLs – Well Documented
Microsoft and Xamarin Partner Globally

With Xamarin, developers combine all of the
productivity benefits of C#, Visual Studio 2013 and
Windows Azure with the flexibility to quickly build
for multiple device targets.”
S. Somasegar, Corporate Vice President, Microsoft
Distribute Everywhere
A Xamarin app is an app, distribute it everywhere
Products
Xamarin for
Visual Studio

Xamarin.iOS

Xamarin Studio

Xamarin.Android

Xamarin Test Cloud

Xamarin.Mac

Component Store

.NET Mobility Scanner
Development Environment

Xamarin Studio
PC or Mac

Visual Studio Plugin
VS 2010/2012/2013
Visual Studio Integration
A single solution:
• iOS
• Android
• Windows Phone
• Windows Store
Leverage the entire
Microsoft ecosystem:
•
•
•

ReSharper
Team Foundation Server
Your favorite code coverage
and profiling tools
Visual Studio Integration
Debug to:
• Emulators
• Devices
Integrated into toolbar
•
•
•

Status
Logs
List of devices

Just Click Start Debugging!
Xamarin Studio
• Optimized for cross-platform
mobile development
• Explore native APIs with code
completion
• World class Android and iOS
designers

• Powerful debugging on
simulator or device
Android Designer
•
•

Worlds best Android designer
Available in:
• Xamarin Studio
• Visual Studio

•

Create UI with drag & drop
simplicity

•

Target multiple screen sizes,
resolutions and Android
versions

•

Layouts saved in standard
Android XML files
iOS Designer
•

World’s first iOS Designer
available in Xamarin Studio
(and soon Visual Studio)

•

Follows familiar Visual Studio
designer idioms

•

Supports all UIKit elements

•

Edit custom and 3rd party
components

•

Live preview of changes to
properties
Xamarin Component Store
Build Apps Faster
• Add high quality pre-built
app components directly
from Visual Studio and
Xamarin Studio
• Beautiful cross-platform UI
controls, cloud services and
enterprise backend
integrations are just a few
clicks away
.NET Mobility Scanner
How mobile is your .NET?
• Scan .exe or .dll to determine compatibility
• Generates full report:
Prebuilt Field Service App
App Features:
• Location-based assignments / routing
• Time recording
• Camera capture of work

• Signature capture
Cross-Platform Techniques
• MVVM pattern
• Xamarin.Mobile
• Signature control from Component Store

• SQLite for storage on all 3 platforms
Prebuilt Employee Directory
App Features:
• LDAP-ready: easy integration into
your corporate directory
• Multiple search options
• The ability to favorite contacts for
easy future access
• The ability to call or email right
from contact’s listing
• Gravatar integration
DEMO
Additional
Material
Remove Slide
#1

Trending on Twitter
during keynote

Xamarin Evolve 2013
Sold
650
8,400
Out!
!
Conference
Attendees

Live stream
hours viewed

Watch Sessions & Highlights: http://xamarin.com/evolve/2013
www.xamarin.com/evolve
Automatically test your app
on 100s of real devices in the cloud.
•

Test app at UI level

•

Takes minutes, not days to get started

•

Test on hundreds of real devices

•

Is resilient to visual changes in UI

•

Has a delightful user interface

•

App Explorer & Custom Tests
Rdio Case Study
Sharing 50,000 lines of code
About Rdio

• Rdio is the leading music
streaming and sharing service
started by the founders of
Skype
• Rdio is already in 30 countries
with over 20 million songs.

• Available in 31 countries
“Rdio’s mobile app is also the best looking and best implemented of the three
[music streaming apps reviewed].”
Wired Magazine
Sharing 50,000 lines of code

Challenge

• Unable to deliver features on
all platforms simultaneously
because of multiple, platformspecific code bases
• High costs to development and
maintain apps

Results

• Using Xamarin, Rdio now shares over 50,000 lines of C# across iOS,
Android, and Windows, enabling them to focus on feature-parity and user
experience.
Sharing 50,000 lines of code

“Xamarin offers the best of all worlds. We deliver high
performance, native apps that, until Xamarin, were only
possible with Objective-C and Java. Sharing over 50,000
lines of code across platforms gives us more time to
spend on great user experiences.”
Matt Crocker
Director of Client Engineering
MarketWatch
Case Study
From No Mobile Experience to Quick Success
About Dow Jones MarketWatch
• A Dow Jones property with over
16 million visitors per month
• Leading innovator in business
news, personal finance, and
investment tools and data
• Part of the Wall Street Digital
Network, which includes
WSJ.com, Barrons.com among
others
From No Mobile Experience to Quick Success
Challenge:
Meet Skyrocketing Mobile Traffic with a Great App
• MarketWatch’s high-end users making
critical financial decisions demand
a fast, easy-to-use app

• Web team tasked with building
mobile app on tight deadlines, but
with no mobile experience
• App is very data-intensive - initial
attempts with HTML5 couldn’t handle
From No Mobile Experience to Quick Success

Results:
• With no mobile experience, team leveraged
Visual Studio to create native iOS app in 6
months.
• Xamarin app replaced existing HTML5 app
for better user experience and performance.
• Estimated 90% code-sharing with an Android
app that is currently in development.
Xamarin University
• Go Mobile Program
Live online training from
Xamarin experts
Lectures and labs

2 coaching sessions where
you meet one-on-one with
expert Xamarin mobile
developers

• What You’ll Learn
•
•
•

iOS and Android Fundamentals
Mobile App Lifecycle
Native UI and Controls

•
•
•

Cross-platform Architecture
Mobile Best Practices
Secure Backend Integration
Xamarin Developer Certifications

Xamarin skills are increasingly in demand – certifications let the
market know you represent top talent

Weitere ähnliche Inhalte

Was ist angesagt?

Cross platform mobile web apps
Cross platform mobile web appsCross platform mobile web apps
Cross platform mobile web apps
James Pearce
 
Mobile Cross-Platform App Development in C# with Xamarin
Mobile Cross-Platform App Development in C# with XamarinMobile Cross-Platform App Development in C# with Xamarin
Mobile Cross-Platform App Development in C# with Xamarin
Nick Landry
 
Cross platform development
Cross platform developmentCross platform development
Cross platform development
dftaiwo
 

Was ist angesagt? (20)

Cross platform mobile web apps
Cross platform mobile web appsCross platform mobile web apps
Cross platform mobile web apps
 
Introduction to Xamarin
Introduction to XamarinIntroduction to Xamarin
Introduction to Xamarin
 
Introduction to xamarin
Introduction to xamarinIntroduction to xamarin
Introduction to xamarin
 
Mobile Cross-Platform App Development in C# with Xamarin
Mobile Cross-Platform App Development in C# with XamarinMobile Cross-Platform App Development in C# with Xamarin
Mobile Cross-Platform App Development in C# with Xamarin
 
Xamarin Platform
Xamarin PlatformXamarin Platform
Xamarin Platform
 
Cross platform development
Cross platform developmentCross platform development
Cross platform development
 
Native Mobile Apps, Xamarin, and PhoneGap
Native Mobile Apps, Xamarin, and PhoneGapNative Mobile Apps, Xamarin, and PhoneGap
Native Mobile Apps, Xamarin, and PhoneGap
 
Introduction to Xamarin
Introduction to XamarinIntroduction to Xamarin
Introduction to Xamarin
 
Introduction to xamarin
Introduction to xamarinIntroduction to xamarin
Introduction to xamarin
 
Mobile Architecture Comparison
Mobile Architecture ComparisonMobile Architecture Comparison
Mobile Architecture Comparison
 
State of Union: Xamarin & Cross-Platform .NET in 2016 and Beyond
State of Union: Xamarin & Cross-Platform .NET in 2016 and BeyondState of Union: Xamarin & Cross-Platform .NET in 2016 and Beyond
State of Union: Xamarin & Cross-Platform .NET in 2016 and Beyond
 
Cross platform Xamarin Apps With MVVM
Cross platform Xamarin Apps With MVVMCross platform Xamarin Apps With MVVM
Cross platform Xamarin Apps With MVVM
 
Native i os, android, and windows development in c# with xamarin 4
Native i os, android, and windows development in c# with xamarin 4Native i os, android, and windows development in c# with xamarin 4
Native i os, android, and windows development in c# with xamarin 4
 
Cross platform development with c# and xamarin
Cross platform development with c# and xamarinCross platform development with c# and xamarin
Cross platform development with c# and xamarin
 
C# everywhere: Xamarin and cross platform development
C# everywhere: Xamarin and cross platform developmentC# everywhere: Xamarin and cross platform development
C# everywhere: Xamarin and cross platform development
 
Intro to Building Mobile Apps with Xamarin
Intro to Building Mobile Apps with XamarinIntro to Building Mobile Apps with Xamarin
Intro to Building Mobile Apps with Xamarin
 
Hitchhicker's Guide to Using Xamarin Forms with RESTful Services
Hitchhicker's Guide to Using Xamarin Forms with RESTful ServicesHitchhicker's Guide to Using Xamarin Forms with RESTful Services
Hitchhicker's Guide to Using Xamarin Forms with RESTful Services
 
Smaller Not Taller: Defeating the mobile application architecture giant
Smaller Not Taller: Defeating the mobile application architecture giantSmaller Not Taller: Defeating the mobile application architecture giant
Smaller Not Taller: Defeating the mobile application architecture giant
 
Cross-platform Mobile Development
Cross-platform Mobile DevelopmentCross-platform Mobile Development
Cross-platform Mobile Development
 
State of the Platforms
State of the PlatformsState of the Platforms
State of the Platforms
 

Ähnlich wie Introduction to xamarin

Building Mobile Cross-Platform Apps for iOS, Android & Windows in C# with Xam...
Building Mobile Cross-Platform Apps foriOS, Android & Windows in C# with Xam...Building Mobile Cross-Platform Apps foriOS, Android & Windows in C# with Xam...
Building Mobile Cross-Platform Apps for iOS, Android & Windows in C# with Xam...
Nick Landry
 
Cloud connected cross platform apps in visual studio
Cloud connected cross platform apps in visual studioCloud connected cross platform apps in visual studio
Cloud connected cross platform apps in visual studio
James Montemagno
 
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGapBuilding Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Nick Landry
 

Ähnlich wie Introduction to xamarin (20)

Introduction to xamarin
Introduction to xamarinIntroduction to xamarin
Introduction to xamarin
 
Xamarin COE by Mukteswar Patnaik
Xamarin COE by Mukteswar PatnaikXamarin COE by Mukteswar Patnaik
Xamarin COE by Mukteswar Patnaik
 
Lecture 08 Xamarin
Lecture 08 XamarinLecture 08 Xamarin
Lecture 08 Xamarin
 
Why is xamarin the preferred app development platform among app developers
Why is xamarin the preferred app development platform among app developersWhy is xamarin the preferred app development platform among app developers
Why is xamarin the preferred app development platform among app developers
 
C# no bolso - desenvolvendo apps multiplataforma
C# no bolso - desenvolvendo apps multiplataformaC# no bolso - desenvolvendo apps multiplataforma
C# no bolso - desenvolvendo apps multiplataforma
 
Introduction to xamarin
Introduction to xamarin  Introduction to xamarin
Introduction to xamarin
 
Building Mobile Cross-Platform Apps for iOS, Android & Windows in C# with Xam...
Building Mobile Cross-Platform Apps foriOS, Android & Windows in C# with Xam...Building Mobile Cross-Platform Apps foriOS, Android & Windows in C# with Xam...
Building Mobile Cross-Platform Apps for iOS, Android & Windows in C# with Xam...
 
Xamarin
XamarinXamarin
Xamarin
 
Popular App Development Frameworks used by App Developers.
Popular App Development Frameworks used by App Developers.Popular App Development Frameworks used by App Developers.
Popular App Development Frameworks used by App Developers.
 
The Great Mobile Debate: Native vs. Hybrid App Development
The Great Mobile Debate: Native vs. Hybrid App DevelopmentThe Great Mobile Debate: Native vs. Hybrid App Development
The Great Mobile Debate: Native vs. Hybrid App Development
 
Cloud connected cross platform apps in visual studio
Cloud connected cross platform apps in visual studioCloud connected cross platform apps in visual studio
Cloud connected cross platform apps in visual studio
 
Xamarin介紹
Xamarin介紹Xamarin介紹
Xamarin介紹
 
Azure mobile services
Azure mobile servicesAzure mobile services
Azure mobile services
 
SydMobDev Feb 2014 - Cross Platform Native App Development with Xamarin and M...
SydMobDev Feb 2014 - Cross Platform Native App Development with Xamarin and M...SydMobDev Feb 2014 - Cross Platform Native App Development with Xamarin and M...
SydMobDev Feb 2014 - Cross Platform Native App Development with Xamarin and M...
 
Highlights from the Xamarin Evolve 2016 conference
Highlights from the Xamarin Evolve 2016 conferenceHighlights from the Xamarin Evolve 2016 conference
Highlights from the Xamarin Evolve 2016 conference
 
top-10-best-mobile-app-development-frameworks-in-2021.pdf
top-10-best-mobile-app-development-frameworks-in-2021.pdftop-10-best-mobile-app-development-frameworks-in-2021.pdf
top-10-best-mobile-app-development-frameworks-in-2021.pdf
 
DevOps on Microsoft Platform
DevOps on Microsoft PlatformDevOps on Microsoft Platform
DevOps on Microsoft Platform
 
Field enablement roadshow - Real World Solutions - John Pelak
Field enablement roadshow - Real World Solutions - John PelakField enablement roadshow - Real World Solutions - John Pelak
Field enablement roadshow - Real World Solutions - John Pelak
 
Enterprise Mobile Apps. Cross-Platform that Works
Enterprise Mobile Apps. Cross-Platform that WorksEnterprise Mobile Apps. Cross-Platform that Works
Enterprise Mobile Apps. Cross-Platform that Works
 
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGapBuilding Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
 

Mehr von Alejandro Ruiz Varela

Mehr von Alejandro Ruiz Varela (20)

Shapes Brief - .NET Conf Latinoamérica 2020
Shapes Brief - .NET Conf Latinoamérica 2020Shapes Brief - .NET Conf Latinoamérica 2020
Shapes Brief - .NET Conf Latinoamérica 2020
 
Primer vistazo a .NET MAUI
Primer vistazo a .NET MAUIPrimer vistazo a .NET MAUI
Primer vistazo a .NET MAUI
 
Data Binding for Xamarin Forms In-Depth
Data Binding for Xamarin Forms In-DepthData Binding for Xamarin Forms In-Depth
Data Binding for Xamarin Forms In-Depth
 
Xamarin.Forms Advanced Topics
Xamarin.Forms Advanced TopicsXamarin.Forms Advanced Topics
Xamarin.Forms Advanced Topics
 
.NET Conf 2019 updates for Mobile Developers
.NET Conf 2019 updates for Mobile Developers.NET Conf 2019 updates for Mobile Developers
.NET Conf 2019 updates for Mobile Developers
 
Deep Dive into Xamarin.Forms Shell @ Xamarin Summit Brasil 2019
Deep Dive into Xamarin.Forms Shell @ Xamarin Summit Brasil 2019Deep Dive into Xamarin.Forms Shell @ Xamarin Summit Brasil 2019
Deep Dive into Xamarin.Forms Shell @ Xamarin Summit Brasil 2019
 
Mobile Machine Learning Made Easy with Azure Custom Vision @ Microsoft Ignite...
Mobile Machine Learning Made Easy with Azure Custom Vision @ Microsoft Ignite...Mobile Machine Learning Made Easy with Azure Custom Vision @ Microsoft Ignite...
Mobile Machine Learning Made Easy with Azure Custom Vision @ Microsoft Ignite...
 
2019 .NET Mobile Development Hot Topics
2019 .NET Mobile Development Hot Topics2019 .NET Mobile Development Hot Topics
2019 .NET Mobile Development Hot Topics
 
Unotalks - The Future of Xamarin.Forms
Unotalks - The Future of Xamarin.FormsUnotalks - The Future of Xamarin.Forms
Unotalks - The Future of Xamarin.Forms
 
DevNights Xamarin: Custom Renderers
DevNights Xamarin: Custom RenderersDevNights Xamarin: Custom Renderers
DevNights Xamarin: Custom Renderers
 
Servicios cognitivos
Servicios cognitivosServicios cognitivos
Servicios cognitivos
 
Aplicaciones conectadas con Azure
Aplicaciones conectadas con AzureAplicaciones conectadas con Azure
Aplicaciones conectadas con Azure
 
Uso de Librerías Objective-c en Xamarin.iOS
Uso de Librerías Objective-c en Xamarin.iOSUso de Librerías Objective-c en Xamarin.iOS
Uso de Librerías Objective-c en Xamarin.iOS
 
2017 xamarin
2017 xamarin2017 xamarin
2017 xamarin
 
Uso de librerías Java en Xamarin.Android
Uso de librerías Java en Xamarin.AndroidUso de librerías Java en Xamarin.Android
Uso de librerías Java en Xamarin.Android
 
Effects & Custom Renderers en Xamarin.Forms
Effects & Custom Renderers en Xamarin.FormsEffects & Custom Renderers en Xamarin.Forms
Effects & Custom Renderers en Xamarin.Forms
 
Xamarin forms + Facebook
Xamarin forms + FacebookXamarin forms + Facebook
Xamarin forms + Facebook
 
Connected & Disconnected Apps With Azure Mobile Apps
Connected & Disconnected Apps With Azure Mobile AppsConnected & Disconnected Apps With Azure Mobile Apps
Connected & Disconnected Apps With Azure Mobile Apps
 
"Cycle 8, Android Nougat & iOS 10" for Monkeys
"Cycle 8, Android Nougat & iOS 10" for Monkeys"Cycle 8, Android Nougat & iOS 10" for Monkeys
"Cycle 8, Android Nougat & iOS 10" for Monkeys
 
Xamarin.Android + Arduino : Hacking Robots
Xamarin.Android + Arduino : Hacking RobotsXamarin.Android + Arduino : Hacking Robots
Xamarin.Android + Arduino : Hacking Robots
 

Kürzlich hochgeladen

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 

Introduction to xamarin

  • 1. Enabling Developers to Create Native iOS, Android, Mac, & Windows apps in C# Presenter’s Name Presenter’s Contact Presenter’s Website Presenter’s Twitter Handle
  • 2. What is Xamarin? • Xamarin enables developers to reach all major mobile platforms! Native User Interface Native Performance Shared Code Across Platforms C# & .NET Framework
  • 4. Silo’d Approach Build Apps Multiple Times • Multiple Teams • Multiple Code Bases • Different toolsets
  • 5. Write Once, Run Anywhere Approach • Lowest common denominator • Browser fragmentation Black Box • Developing & designing for 1 platform, happen to get other platforms
  • 6. Xamarin’s Unique Approach • Native User Interface • Native Performance • Shared code across platforms • C# & .NET Framework • Full API Coverage
  • 8. C# Is Awesome • LINQ Support • Work With XML Easily XDocument • Event Handling & Delegates
  • 9. C# Is Awesome – JSON Made Easy Json.NET offers simple conversions to and from JSON strings and .NET objects, with SerializeObject and DeserializeObject methods.
  • 10. See the Difference – Attributed Strings Objective-C C# with Xamarin
  • 11. Probing for properties on an AudioFile Objective-C C# with Xamarin
  • 12. See the Different – Android ItemClick Java C# with Xamarin C# & Async with Xamarin
  • 13. Async/Await Write Beautiful & Maintainable Code
  • 15. Write Everything in C# iOS, Android, Windows, Windows Phone, Mac 2.5+ Billion Devices!
  • 16. Xamarin History Over a Decade of Enterprise Production Use 500,000+ Reach 200,000 Developers Developer 100+ Partners Mark 100+ Components 2000 Ximian Founded 2001 2003 2009 2011 Mono Started Ximian Acquired by Novell First iOS product (now Xamarin.iOS) launches 2013 Xamarin Founded 2012 First Xamarin 2.0 release of Xamarin.Mac Component First Store Release of Launch Evolve 2013 Xamarin.Android Partner Program Xamarin Test Cloud Microsoft Partnership
  • 17. 100% API Coverage Anything you can do in Objective-C or Java can be done in C# and Visual Studio with Xamarin!
  • 18. Native Performance Xamarin.iOS does full Ahead Of Time (AOT) compilation to produce an ARM binary for Apple’s App Store. Xamarin.Android takes advantage of Just In Time (JIT) compilation on the Android device.
  • 19. Always Up to Date Always up-to-date with the latest APIs from Apple and Google. Same-day support: • iOS 5 • iOS 6 • iOS 6.1 • iOS 7
  • 20. Code Sharing: Accelerate Development • Up to 90% Code Reuse • Leverage existing libraries NuGet Support Code-sharing stats from iCircuit, built with Xamarin and featured on the App Store. Source: http://praeclarum.org/post/42378027611/icircuit-code-reuse-part-cinq
  • 21. Portable Class Libraries • • • 1 Assembly Multiple Platforms Including: • Xamarin.Android • Xamarin.iOS
  • 22. Portable Class Libraries Features •Centralized Code Sharing •How you expect it to work •Debug seamlessly into and out of PCL •Project/Assembly Sharing •NuGet
  • 23. PCLs – Well Documented
  • 24. Microsoft and Xamarin Partner Globally With Xamarin, developers combine all of the productivity benefits of C#, Visual Studio 2013 and Windows Azure with the flexibility to quickly build for multiple device targets.” S. Somasegar, Corporate Vice President, Microsoft
  • 25. Distribute Everywhere A Xamarin app is an app, distribute it everywhere
  • 27. Xamarin for Visual Studio Xamarin.iOS Xamarin Studio Xamarin.Android Xamarin Test Cloud Xamarin.Mac Component Store .NET Mobility Scanner
  • 28. Development Environment Xamarin Studio PC or Mac Visual Studio Plugin VS 2010/2012/2013
  • 29. Visual Studio Integration A single solution: • iOS • Android • Windows Phone • Windows Store Leverage the entire Microsoft ecosystem: • • • ReSharper Team Foundation Server Your favorite code coverage and profiling tools
  • 30. Visual Studio Integration Debug to: • Emulators • Devices Integrated into toolbar • • • Status Logs List of devices Just Click Start Debugging!
  • 31. Xamarin Studio • Optimized for cross-platform mobile development • Explore native APIs with code completion • World class Android and iOS designers • Powerful debugging on simulator or device
  • 32. Android Designer • • Worlds best Android designer Available in: • Xamarin Studio • Visual Studio • Create UI with drag & drop simplicity • Target multiple screen sizes, resolutions and Android versions • Layouts saved in standard Android XML files
  • 33. iOS Designer • World’s first iOS Designer available in Xamarin Studio (and soon Visual Studio) • Follows familiar Visual Studio designer idioms • Supports all UIKit elements • Edit custom and 3rd party components • Live preview of changes to properties
  • 34. Xamarin Component Store Build Apps Faster • Add high quality pre-built app components directly from Visual Studio and Xamarin Studio • Beautiful cross-platform UI controls, cloud services and enterprise backend integrations are just a few clicks away
  • 35. .NET Mobility Scanner How mobile is your .NET? • Scan .exe or .dll to determine compatibility • Generates full report:
  • 36. Prebuilt Field Service App App Features: • Location-based assignments / routing • Time recording • Camera capture of work • Signature capture Cross-Platform Techniques • MVVM pattern • Xamarin.Mobile • Signature control from Component Store • SQLite for storage on all 3 platforms
  • 37. Prebuilt Employee Directory App Features: • LDAP-ready: easy integration into your corporate directory • Multiple search options • The ability to favorite contacts for easy future access • The ability to call or email right from contact’s listing • Gravatar integration
  • 38. DEMO
  • 40. #1 Trending on Twitter during keynote Xamarin Evolve 2013 Sold 650 8,400 Out! ! Conference Attendees Live stream hours viewed Watch Sessions & Highlights: http://xamarin.com/evolve/2013
  • 42. Automatically test your app on 100s of real devices in the cloud. • Test app at UI level • Takes minutes, not days to get started • Test on hundreds of real devices • Is resilient to visual changes in UI • Has a delightful user interface • App Explorer & Custom Tests
  • 44. Sharing 50,000 lines of code About Rdio • Rdio is the leading music streaming and sharing service started by the founders of Skype • Rdio is already in 30 countries with over 20 million songs. • Available in 31 countries “Rdio’s mobile app is also the best looking and best implemented of the three [music streaming apps reviewed].” Wired Magazine
  • 45. Sharing 50,000 lines of code Challenge • Unable to deliver features on all platforms simultaneously because of multiple, platformspecific code bases • High costs to development and maintain apps Results • Using Xamarin, Rdio now shares over 50,000 lines of C# across iOS, Android, and Windows, enabling them to focus on feature-parity and user experience.
  • 46. Sharing 50,000 lines of code “Xamarin offers the best of all worlds. We deliver high performance, native apps that, until Xamarin, were only possible with Objective-C and Java. Sharing over 50,000 lines of code across platforms gives us more time to spend on great user experiences.” Matt Crocker Director of Client Engineering
  • 48. From No Mobile Experience to Quick Success About Dow Jones MarketWatch • A Dow Jones property with over 16 million visitors per month • Leading innovator in business news, personal finance, and investment tools and data • Part of the Wall Street Digital Network, which includes WSJ.com, Barrons.com among others
  • 49. From No Mobile Experience to Quick Success Challenge: Meet Skyrocketing Mobile Traffic with a Great App • MarketWatch’s high-end users making critical financial decisions demand a fast, easy-to-use app • Web team tasked with building mobile app on tight deadlines, but with no mobile experience • App is very data-intensive - initial attempts with HTML5 couldn’t handle
  • 50. From No Mobile Experience to Quick Success Results: • With no mobile experience, team leveraged Visual Studio to create native iOS app in 6 months. • Xamarin app replaced existing HTML5 app for better user experience and performance. • Estimated 90% code-sharing with an Android app that is currently in development.
  • 51. Xamarin University • Go Mobile Program Live online training from Xamarin experts Lectures and labs 2 coaching sessions where you meet one-on-one with expert Xamarin mobile developers • What You’ll Learn • • • iOS and Android Fundamentals Mobile App Lifecycle Native UI and Controls • • • Cross-platform Architecture Mobile Best Practices Secure Backend Integration
  • 52. Xamarin Developer Certifications Xamarin skills are increasingly in demand – certifications let the market know you represent top talent

Hinweis der Redaktion

  1. Xamarin Introduction!
  2. Let’s talk about the state of mobile development today
  3. Multiple TeamsMultiple Code BasesExpensive & SlowPositive = Great apps delivered to user’s platformNegative = Development hampered by multiple code bases & fragmentation
  4. Unhappy UsersUnhappy DevelopersIncrease in Abandoned AppsLimited to what is implemented
  5. UI build natively per platform, leveraging C#C# + XAMLC# + XMLC# + XIBOne shared app logic code base, iOS, Android, Mac, Windows Phone, Windows Store, Windows
  6. Let’s talk a bit about C# and why it is awesome.
  7. Statically typed so you avoid a pitfall of errors that afflict other languages.Use LINQ in your Xamarin projects to query, filter and select data from in-memory arrays, or from databases such as SQLite.Parsing XML is easySetting up event handling is a breezeIntellisense, lambdas, etc. are all awesome.
  8. Use your favorite libraries like Json.NET!
  9. Here is an example of creating an attributed string.Take advantage of C# features and set properties easily
  10. Here we are looking for the PacketSizeUpperBound, 1 line of code
  11. Here we can see how easy it is just to do a += for an event and not have to implement a bunch of listeners every time. Easy to read, string.Format, using args, etc.In fact we can make this call Async/Await by just adding async to the delegate!
  12. The async and await keywords in C# 5.0 now available to Xamarin developers make asynchronous programming incredibly pleasant. You end up with code that is much more linear and much easier to understand. The compiler does a lot of magic for you which simplifies your code and your life.
  13. Let’s talk a bit about why you would choose Xamarin as your development platform.
  14. Take advantage of everything great about C# and now write code that can be shared across all platformsiOSAndroid,MacWindows (WPF, Store, Phone, ASP.NET, etc)
  15. Full History of Xamarin
  16. Xamarin offers 100% API coverage on iOS and AndroidIf you want to do something specific on a platform it is all availableNFC, iBeacon, WiFi, Bluetooth, you name it the API is availableXamarin beautiful bindings for every API in Android and iOS
  17. There is no compromise on performance.Xamarin apps look and feel native because they are native.
  18. Apple has a developer preview where Xamarin has alphas ready. Google does not offer this. Android versions are usually 4 to 8 weeks out for a stable release, but alphas and betas are usually earlier. Xamarin realizes how important having iOS ready because within 24 hours a large portion of iOS users upgradeAndroid on the other hand is much different. After 4 months on the market Android 4.4 only had 1% adoption
  19. iCircuit is made by Frank Krueger, a long time Mono & Xamarin developer. Sharing code lead to 70 to 90% code reuse across platforms speeding up developmentReal-time circuit simulator and editor used to design analog and digital circuitshttp://praeclarum.org/post/42378027611/icircuit-code-reuse-part-cinq
  20. Portable Class Libraries are awesome!You can write all of your C# code in one assembly and share across all platformsBefore the Xamarin & Microsoft Partnership PCLs were limited ONLY to Windows PlatformsNow add official support to create and use PCLs in Visual Studio and Xamarin Sudio
  21. Centralize all code how you want it to work and share across platformsTake advantage of NuGet to create and use libraries to your projectsEasier to Create and Easier to consume in appsCreate small reusable PCLs to share across all of your projects
  22. PCLs have amazing documentation on MSDN already.As you can see here the 2nd icon is the “PCL Library” icon which tells you what is availableRemember PCLs are a subset of the .NET library because they are platform independent so not all APIs will be available, for example here: KeyedByTypeCollection<TItem> is not available in PCLOften a NuGet will fill in the gaps, such as PCLStorage for IsolatedStorage across platforms
  23. Major announcement at the end of 2013:Truly Portable Class LibrariesSupport for VS 2013Special offers for MSDN Subscribers20 City Roadshow!
  24. Compiles down to APK or IPA that you can distribute anywhere, any store.Or even internal enterprise
  25. Xamarin offers many products from the core Xamarin.iOS and Xamarin.Android development to tools to speed up development such as the Component Store and .NET Mobility Scanner
  26. High level vies of all the products that Xamarin currently offers, let’s take a look deeper.
  27. Xamarin StudioPC -> AndroidMac -> iOS, Android, MacVisual Studio: iOS, Android Windows
  28. Additionally Supports Visual Studio 2010, 2012, & of course 2013Additionally support desktop apps on Windows: WPF, ASP.NET, Silverlight, WinForms!The same Solution & Projects open in BOTH Xamarin Studio and Visual Studio!
  29. Connect to Mac build host for iOS developmentShow list of all iOS devices and Simulators to debug onShows all Android devices and emulatorsX86, Arm, Genymotion..Take advantage of all debugging power of VS
  30. Xamarin Studio is available for Android development on the PC. Xamarin Studio on Mac offers: Android, iOS and Mac developmentWorld Class IDE with great features:Code AnalysisUpload to Test FlightGit & Subversion IntegrationCode CompletionCode NavigationEasy transition from Visual StudioThe same Solution & Projects open in BOTH Xamarin Studio and Visual Studio!
  31. State of the art features:View different ThemesView different device sizesMulti-view editing!
  32. Add high quality pre-built app components directly from Visual Studio. Includes dozens of beautiful UI controls and web services – adding a theme or a 3rd party library is just a few clicks awayComplements existing .NET NuGet ecosystemDifferentiator: focus on UI controls and themes – we are making developers better designers across all platforms
  33. Generates a full report of all method calls to determine compatibility with Xamarin.Android, Xamarin.iOS, Windows Phone, and Windows 8.
  34. Open source apps, you can download and get started with today
  35. Technical DetailsTake advantage of the latest cross-platform UI and mobile architecture best practices, including:iPhone, Android, and Windows native user interfacesUses MVVM, shares view-models across platformsSQLite data store with a .NET-based SQLite ORM on all platformsAbility to hook up to your enterprise backend
  36. Demo time if so desired
  37. Additional Resources that might be interesting for your group. Includes: Evolve, Test Flight, Case studies, and Xamarin University.
  38. First conference! Huge successAll sessions and highlights are available to stream online!Great resources
  39. Save the date now available
  40. App Explorer - uses one reference device, and runs through all the screens and execution paths.  If it dead ends, it starts over.  Good for a quick overview of app, but not a replacement for hand-crafted tests.Statistics OS Versions, Devices (sorted by device market share - you can prioritize Crashs vs. Unique crashes# of gestures performedTotal device timeYammerLeft hand window this the tests executed (step by step).  On the right hand side you see the devices that the tests were run on.  As you scroll through each step, you can see on the right hand side.  Drill down on a specific device to see more details.Types of output- Visual Test Results (from screenshots) - "I've never seen my app run on a Kindle Fire - it looks terrible"- Stack Trace and full device log- Performance Data  - Peak memory usage - show's memory usage at each step of the app  - App Size  - Responsiveness - how long does it take the UI thread to respond.  Measured in milliseconds, and roughly equates to FPS.  
  41. A consumer music streaming company founded by the guys who founded Skype, 18 million tracks. Millions and millions of users in 17 countries. When we talked to them 3 years ago, they had a problem: three codebases on three platforms, the same app implemented 3 times for iOS, Android and Windows. When they wanted to add a new feature, they had to do it 3x. Now their apps are built on Xamarin and they are sharing >50,000 lines of code on each device, and delivering a gorgeous user experience
  42. A consumer music streaming company founded by the guys who founded Skype, 18 million tracks. Millions and millions of users in 17 countries. When we talked to them 3 years ago, they had a problem: three codebases on three platforms, the same app implemented 3 times for iOS, Android and Windows. When they wanted to add a new feature, they had to do it 3x. Now their apps are built on Xamarin and they are sharing >50,000 lines of code on each device, and delivering a gorgeous user experience
  43. Rdio is "the best looking and best implemented of all three mobilemusic apps"
  44. \
  45. Xamarin UniversityLearn to build native iOS, Android, and Windows apps with C# in just 30 days.
  46. Xamarin Certification is held online during Xamarin University and also at Evolve Conference.