0
Craig Dunn
Developer Evangelist
Xamarin
craig@xamarin.com
@conceptdev

Android with C#
using Xamarin
Why Xamarin.Android?
aka Why Are You Here?

• Write C# apps for Android phones & tablets
• Share C# with other platforms:
...
How Does it Work?
• Mono
C# + .NET implementation for Linux
started in 2001/released 2004
perfect fit for today’s mobile p...
How Does it Work?
Xamarin Installer
• Simple unified installer
http://xamarin.com/download
installs Android SDK for you

• Register with Goo...
Development Environment Support
Mac OS X
IDE
iOS
Android
Windows Phone

Windows

+

Xamarin
Business
Edition

+

Mac
Android Development Environment
Visual Studio

Xamarin Studio
Android UI Designer
Visual Studio

Xamarin Studio
Android Development Environment
Linking reduces size

Choose CPU arch
Shared runtime for
debugging only.
Android Development Environment
• AndroidManifest.xml
Permissions
App configuration
use [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
A...
What’s Next?
•
•
•
•

async/await
F#
Portable Class Libraries (PCL)
Google Play Services
In app purchasing
Location servic...
What’s Next?
async/await
Go!
• 10 minute guide to building an app
http://xamarin.com/getting-started
• Docs, Recipes
http://docs.xamarin.com/
• For...
Q&A
Craig Dunn
Developer Evangelist
Xamarin
craig@xamarin.com
@conceptdev

THANK YOU
Upcoming SlideShare
Loading in...5
×

Introduction to Android with C# using Xamarin

618

Published on

Presented at NDC Oslo, 14th June 2013.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
618
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
37
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Introduction to Android with C# using Xamarin"

  1. 1. Craig Dunn Developer Evangelist Xamarin craig@xamarin.com @conceptdev Android with C# using Xamarin
  2. 2. Why Xamarin.Android? aka Why Are You Here? • Write C# apps for Android phones & tablets • Share C# with other platforms: Xamarin.iOS Windows Phone Windows Store Apps re-use C# from existing projects • Create native Android user interface • Native runtime == native performance • Use Java libraries (if required)
  3. 3. How Does it Work? • Mono C# + .NET implementation for Linux started in 2001/released 2004 perfect fit for today’s mobile platforms: iOS & Android • “Bindings” exposes Android as C# you can write your own to incorporate any Java • Compiler produces IL and ships a native runtime to execute it can link out unused code
  4. 4. How Does it Work?
  5. 5. Xamarin Installer • Simple unified installer http://xamarin.com/download installs Android SDK for you • Register with Google to deploy on Play (but you can deploy directly too) http://play.google.com/apps/publish
  6. 6. Development Environment Support Mac OS X IDE iOS Android Windows Phone Windows + Xamarin Business Edition + Mac
  7. 7. Android Development Environment Visual Studio Xamarin Studio
  8. 8. Android UI Designer Visual Studio Xamarin Studio
  9. 9. Android Development Environment Linking reduces size Choose CPU arch Shared runtime for debugging only.
  10. 10. Android Development Environment • AndroidManifest.xml Permissions App configuration use [Activity] and other attributes
  11. 11. Android Development Environment • Deployment Signing wizard
  12. 12. DEMO
  13. 13. DEMO
  14. 14. RESULT
  15. 15. SHARE Components Code ‘Structure’ Design
  16. 16. SHARE
  17. 17. 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
  18. 18. What’s Next? • • • • async/await F# Portable Class Libraries (PCL) Google Play Services In app purchasing Location services Maps v2 • Google Support Lib Drawer Navigation + more!
  19. 19. What’s Next? async/await
  20. 20. 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
  21. 21. Q&A
  22. 22. Craig Dunn Developer Evangelist Xamarin craig@xamarin.com @conceptdev THANK YOU
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×