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

Securing Web Applications Made Simple and Scalable

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

Bridging the IT gap between rising business demands and ageing tools

More from The Register

next story
NO MORE ALL CAPS and other pleasures of Visual Studio 14
Unpicking a packed preview that breaks down ASP.NET
DARPA-derived secure microkernel goes open source tomorrow
Hacker-repelling, drone-protecting code will soon be yours to tweak as you see fit
Cheer up, Nokia fans. It can start making mobes again in 18 months
The real winner of the Nokia sale is *drumroll* ... Nokia
Put down that Oracle database patch: It could cost $23,000 per CPU
On-by-default INMEMORY tech a boon for developers ... as long as they can afford it
Google shows off new Chrome OS look
Athena springs full-grown from Chromium project's head
Apple: We'll unleash OS X Yosemite beta on the MASSES on 24 July
Starting today, regular fanbois will be guinea pigs, it tells Reg
HIDDEN packet sniffer spy tech in MILLIONS of iPhones, iPads – expert
Don't panic though – Apple's backdoor is not wide open to all, guru tells us
prev story

Whitepapers

Designing a Defense for Mobile Applications
Learn about the various considerations for defending mobile applications - from the application architecture itself to the myriad testing technologies.
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.
Top 8 considerations to enable and simplify mobility
In this whitepaper learn how to successfully add mobile capabilities simply and cost effectively.
Seven Steps to Software Security
Seven practical steps you can begin to take today to secure your applications and prevent the damages a successful cyber-attack can cause.
Boost IT visibility and business value
How building a great service catalog relieves pressure points and demonstrates the value of IT service management.