Mono for Android... for Google Devs
Upcoming SlideShare
Loading in...5
×
 

Mono for Android... for Google Devs

on

  • 13,197 views

Presentation to the East Bay Google Developers Group - January 14th, 2013

Presentation to the East Bay Google Developers Group - January 14th, 2013

Statistics

Views

Total Views
13,197
Views on SlideShare
1,634
Embed Views
11,563

Actions

Likes
1
Downloads
27
Comments
0

66 Embeds 11,563

http://www.go-mono.com 4949
http://conceptdev.blogspot.com 2630
http://go-mono.com 972
http://conceptdev.blogspot.com.au 404
http://conceptdev.blogspot.co.uk 297
http://conceptdev.blogspot.de 272
http://conceptdev.blogspot.in 202
http://conceptdev.blogspot.ru 180
http://conceptdev.blogspot.ca 135
http://conceptdev.blogspot.com.es 111
http://conceptdev.blogspot.fr 98
http://conceptdev.blogspot.it 97
http://conceptdev.blogspot.nl 96
http://go-mono.org 92
http://conceptdev.blogspot.com.br 83
http://www.go-mono.org 78
http://conceptdev.blogspot.mx 66
http://conceptdev.blogspot.se 55
http://conceptdev.blogspot.co.nz 55
http://go-mono.net 54
http://conceptdev.blogspot.dk 53
http://conceptdev.blogspot.kr 50
http://conceptdev.blogspot.ch 43
http://conceptdev.blogspot.no 38
http://conceptdev.blogspot.be 35
http://conceptdev.blogspot.hk 33
http://conceptdev.blogspot.pt 33
http://conceptdev.blogspot.jp 32
http://conceptdev.blogspot.sg 25
http://conceptdev.blogspot.fi 24
http://www.twylah.com 23
http://conceptdev.blogspot.tw 23
http://conceptdev.blogspot.ro 22
http://conceptdev.blogspot.ie 21
http://conceptdev.blogspot.gr 18
http://conceptdev.blogspot.hu 16
http://conceptdev.blogspot.co.il 16
http://conceptdev.blogspot.cz 16
http://conceptdev.blogspot.co.at 14
http://conceptdev.blogspot.com.tr 13
http://conceptdev.blogspot.com.ar 11
http://www.directrss.co.il 10
http://conceptdev.blogspot.sk 10
http://conceptdev1.rssing.com 9
http://translate.googleusercontent.com 7
http://conceptdev.blogspot.ae 7
http://www.verious.com 5
http://www.blogger.com 3
http://webcache.googleusercontent.com 3
http://www.conceptdev.blogspot.com 2
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Mono for Android... for Google Devs Mono for Android... for Google Devs Presentation Transcript

  • Google Developer Group January 14th, 2013
  • Mono for Android...for Google Developers Craig Dunn Developer Evangelist craig@xamarin.com @conceptdevXamarins Mono for Android tools let you build applications for Android using C#.You can write code on a Mac with MonoDevelop, or for Windows choose betweenMonoDevelop and Visual Studio. Whats in it for Java developers? C# is an easyleap, and you can then re-use your code on iOS and Windows devices. Well look atthe tooling, building an Android app with C# and the principles of sharing code withiPhones, iPads and Windows.
  • HeadlineYour  own  sub  headline OVERVIEW
  • What is Mono?Open source implementation of the .NET Common Language Runtime (CLR) and the C# language • Linux, MacOS X, Solaris, BSD, Wii, PS3, PS Vita! • Started in 2001 as Ximian, purchased by Novell in 2003, released in 2004 • 2009: MonoTouch created (released 2010) • 2010: Mono for Android created (released 2011) • 2011: Novell purchased by Attachmate ($2.2b) - Xamarin is born... http://www.mono-project.com/ http://github.com/mono http://xamarin.com/
  • What is Mono for Android? Mono C# & .NET + Android API bindings + UI designer + Visual Studio plug-in (or MonoDevelop) = Android application development http://xamarin.com/android Released April 2011
  • What is Mono for Android?• Runs natively - Fast enough for games, eg. flight simulation• Use platform’s UI controls• Access all Android features• Incorporate existing Java
  • What is Mono for Android? • LINQ support • .NET XML APIs • Event handling & delegates • Parallel LINQ
  • Rich IDE Support • Point and Click UI generation • Code completion to explore Android APIs • Source control (Subversion & Git) • Use Visual Studio or our own cross-platform IDE
  • Debugging on Emulator & Devices• Debug with Android simulator and on devices• Set breakpoints, watches, single-step through code, hover over variables• Change object values real-time
  • HeadlineYour  own  sub  headline DEMO
  • Who moved my cheese?• /res/ & R.java• findViewById• Android.xml• Anonymous classes• Naming (InitialCaps)!
  • HeadlineYour  own  sub  headline Tech stuff
  • Runtime• Mono runtime is bundled with each app• For faster debugging, a Shared Runtime can be installed• Apps deployed to users always include the runtime, but...
  • LinkingMono compiler strips out unused classes/libraries • Mobile devices – size matters! • Trap for young players: it might strip out stuff you want to keep! • Classes/methods/properties used via Reflection • Classes/methods/properties used in serialization operationsBy default disabled in DEBUG, so stuff will work there and mysteriously break in RELEASE [Preserve(AllMembers = true)]
  • Binding• Xamarin releases new versions of Mono for Android that correspond to each API level and release from Google.• Tools are provided to help you ‘bind’ any existing Java lib (.jar) to incorporate into your Mono app
  • Xamarin.Mobile APIsxamarin.com/mobile• Camera• Contacts• Geolocation• Compass/Accelerometer• NotificationsFor Android, iOS, Win Phone & Win 8/RT
  • Cross-Platform Development• Share code• Shared data with SQLite• Shared web services with WebClient/ HttpClient• Conditional compilation (if required)Write your UIfor each platform
  • Cross-Platform DevelopmentiCircuit• Code re-use http://praeclarum.org/
  • HeadlineYour  own  sub  headline DEMO
  • Cross-Platform DevelopmentMWC 2012 sample
  • Cross-Platform Developmentmwc.xamarin.com
  • Cross-Platform DevelopmentOther Cross-Platform Libraries• MonoCross code.google.com/p/monocross Cross-platform UI framework• Vernacular github.com/rdio/vernacular Cross-platform localization framework• MonoGame monogame.net Cross-platform XNA game framework, from Xbox to Windows RT (as well as iOS and Android)
  • Customers Complete access to iOS & Android UI and APIs Native binary, not interpreted, for responsive, fluid performance under the most demanding app scenarios Infinite Flight TouchDraw Rdio iOS, Mac & Android iOS, Android, WP (Samsung only)
  • HeadlineYour  own  sub  headline Questions?
  • HeadlineYour  own  sub  headline Thank you! Learn more at our conference xamarin.com/evolve Austin, Texas ~ April 14-17