introduction to android with c# using xamarin
DESCRIPTION
Presented at NDC Oslo, 14th June 2013.TRANSCRIPT
Craig DunnDeveloper [email protected]@conceptdev
Android with C# using Xamarin
Why Xamarin.Android?
• Write C# apps for Android phones & tablets• Share C# with other platforms:
Xamarin.iOSWindows PhoneWindows Store Appsre-use C# from existing projects
• Create native Android user interface• Native runtime == native performance• Use Java libraries (if required)
aka Why Are You Here?
How Does it Work?
• Mono C# + .NET implementation for Linuxstarted in 2001/released 2004perfect fit for today’s mobile platforms: iOS & Android
• “Bindings”exposes Android as C#you can write your own to incorporate any Java
• Compilerproduces IL and ships a native runtime to execute itcan link out unused code
How Does it Work?
Xamarin Installer
• Simple unified installerhttp://xamarin.com/downloadinstalls Android SDK for you
• Register with Google to deploy on Play (but you can deploy directly too)
http://play.google.com/apps/publish
Mac OS X WindowsWindows
IDE
iOS
Android
Windows Phone
Development Environment Support
XamarinBusiness Edition+
Mac+
Android Development Environment
Xamarin Studio
Visual Studio
Android UI Designer
Xamarin Studio
Visual Studio
Android Development Environment
Shared runtime fordebugging only.
Linking reduces size
Choose CPU arch
Android Development Environment
• AndroidManifest.xmlPermissionsApp configurationuse [Activity] and other attributes
Android Development Environment
• Deployment
Signing wizard
DEMO
DEMO
RESULT
SHARE
Components
Code
‘Structure’
Design
SHARE
Recap
• Build Android apps in C# with .NET• Use Xamarin Studio or Visual Studio• Apps have native look and feel• Apps run natively, with native performance• Share code• Component Store
http://components.xamarin.com
What’s Next?
• async/await• F#• Portable Class Libraries (PCL)• Google Play Services
In app purchasingLocation servicesMaps v2
• Google Support LibDrawer Navigation + more!
What’s Next?async/await
Go!• 10 minute guide to building an app
http://xamarin.com/getting-started • Docs, Recipes
http://docs.xamarin.com/• Forums
http://forums.xamarin.com• Samples
http://github.com/xamarin
http://xamarin.com/download
Q&A
Craig DunnDeveloper [email protected]@conceptdev THANK YOU