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

The Power of One eBook: Top reasons to choose HP BladeSystem

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. ®

HP ProLiant Gen8: Integrated lifecycle automation

More from The Register

next story
Whoah! How many Google Play apps want to read your texts?
Google's app permissions far too lax – security firm survey
Chrome browser has been DRAINING PC batteries for YEARS
Google is only now fixing ancient, energy-sapping bug
Do YOU work at Microsoft? Um. Are you SURE about that?
Nokia and marketing types first to get the bullet, says report
Microsoft takes on Chromebook with low-cost Windows laptops
Redmond's chief salesman: We're taking 'hard' decisions
EU dons gloves, pokes Google's deals with Android mobe makers
El Reg cops a squint at investigatory letters
Big Blue Apple: IBM to sell iPads, iPhones to enterprises
iOS/2 gear loaded with apps for big biz ... uh oh BlackBerry
OpenWRT gets native IPv6 slurping in major refresh
Also faster init and a new packages system
prev story

Whitepapers

Reducing security risks from open source software
Follow a few strategies and your organization can gain the full benefits of open source and the cloud without compromising the security of your applications.
Consolidation: The Foundation for IT Business Transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.
Application security programs and practises
Follow a few strategies and your organization can gain the full benefits of open source and the cloud without compromising the security of your applications.
Boost IT visibility and business value
How building a great service catalog relieves pressure points and demonstrates the value of IT service management.
Consolidation: the foundation for IT and business transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.