Feeds

Want to code for Google Glass in C#? Xamarin's got you covered

Cross-platform tools bring Microsoft-style app dev to Google headsets

Build a business case: developing custom apps

Cross-platform development tools vendor Xamarin has rolled out new components that allow coders to use its products to build apps for Google Glass.

Xamarin, which was founded by Mono project creators Miguel de Icaza and Nat Friedman, offers tools based on the open source .Net clone that allow developers to more easily build apps for Android, iOS, and OS X devices using a substantially similar code base for all three.

Ordinarily, developers write native mobile apps for Android and Apple's platforms using the Java and Objective-C languages, respectively. Xamarin's tools make it possible for developers to use Microsoft's C# language to target any of the above, even using Redmond's Visual Studio tool suite to create their apps, if they choose.

Glass isn't a smartphone, obviously, but it does run Android – version 4.04, to be precise – which means it's a potential target for Xamarin's tools. On Thursday, Xamarin made available a set of extra bits for its Xamarin.Android product that allow it to package apps for the high-tech specs.

The components bridge Xamarin-based code written in C# with the Glass Development Kit (GDK), the new native API for Glass that Google launched in November.

Before the GDK, the only way to write apps for Glass was to use the Mirror API, which provided a means to create web-based services that displayed information on Glass. GDK-based apps, by comparison, are delivered as standard Android APK packages and their code runs on the Glass hardware itself.

The version of the GDK that's available now is only considered a "sneak peek" – not even a developer preview – so a lot will probably change before Google releases the final version, and Xamarin will likely need to tweak its tools accordingly. But the current version should allow coders to create a variety of apps using Xamarin's C#-derived development model.

That should please Microsoft, which has been working with Xamarin to improve the cross-platform capabilities of its tools and should appreciate that C# developers can now code for Glass – that is, at least, until Redmond releases a Google Glass rival of its own.

The catch? Only a mild one. Xamarin offers a 30-day free trial of its tools and the Glass components are a free download. But to install and test your apps you'll still need access to a Glass headset – no emulator is available – which means you'll need to be accepted to Google's Glass Explorer program, which you can apply for here. ®

Gartner critical capabilities for enterprise endpoint backup

More from The Register

next story
Why has the web gone to hell? Market chaos and HUMAN NATURE
Tim Berners-Lee isn't happy, but we should be
Microsoft boots 1,500 dodgy apps from the Windows Store
DEVELOPERS! DEVELOPERS! DEVELOPERS! Naughty, misleading developers!
'Stop dissing Google or quit': OK, I quit, says Code Club co-founder
And now a message from our sponsors: 'STFU or else'
Apple promises to lift Curse of the Drained iPhone 5 Battery
Have you tried turning it off and...? Never mind, here's a replacement
Linux turns 23 and Linus Torvalds celebrates as only he can
No, not with swearing, but by controlling the release cycle
Scratched PC-dispatch patch patched, hatched in batch rematch
Windows security update fixed after triggering blue screens (and screams) of death
This is how I set about making a fortune with my own startup
Would you leave your well-paid job to chase your dream?
prev story

Whitepapers

Top 10 endpoint backup mistakes
Avoid the ten endpoint backup mistakes to ensure that your critical corporate data is protected and end user productivity is improved.
Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Backing up distributed data
Eliminating the redundant use of bandwidth and storage capacity and application consolidation in the modern data center.
The essential guide to IT transformation
ServiceNow discusses three IT transformations that can help CIOs automate IT services to transform IT and the enterprise
Next gen security for virtualised datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.