jerdog · May 6, 2012 at 07:00 am

C#: The Future of Android?

If you haven’t heard, Google and Oracle are locked in a dispute over the Android OS and its use of Java code. This struggle could have strong repercussions for the world’s most popular mobile OS.

With that realization Xamarin, makers of the open-source and cross-platform mobile .NET application development platform Mono, sat down almost a year ago to look at the Android platform and see what could be done to improve battery life and Android application performance. Eventually their team came to the conclusion that C# offered a more robust base than Java, with fewer coding limitations and faster performance. In their words:

Over and over we came back to the basics: Dalvik is a young virtual machine, it is not as performant or tuned as Mono and suffers from many of Java’s performance limitations without the benefit of the high-end optimizations from Oracle’s HotSpot. One crazy idea that the team had at that dinner was to translate Android’s source code to C#. Android would benefit from C# performance features like structures, P/Invoke, real generics and our more mature runtime.

Although nothing happened back in July, this idea stuck in the back of our minds.

Fast forward a few months: Mono for Android is doing great, and we are starting to think again about improving our own product’s performance on Android. What if we could swap out Java with faster C# and get rid of various Dalvik limitations in the process? Could we create an Android phone completely free of Java, and free of the limitations of the Dalvik VM?

We decided it was crazy enough to try. So we started a small skunkworks project with the goal of doing a machine translation of Android from Java to C#. We called this project XobotOS.

Xamarin then began the XobotOS project to port Android 4.0 to C# using their open-source tool Sharpen. While they no longer are focusing on XobotOS, they have open-sourced the project on GitHub. Could this be the answer to Google’s current legal battles? Given the depth of the necessary ecosystem changes, this seems unlikely. However, it presents an interesting possibility for those willing to tinker with the open-source code above.


_________
Want something on the XDA Portal? Send us a tip!
TAGS:

jerdog

jerdog is an editor on XDA-Developers, the largest community for Android users. Jeremy has been an XDA member since 2007, and has been involved in technology in one way or another, dating back to when he was 8 years old and was given his first PC in 1984 - which promptly got formatted. It was a match made in the stars, and he never looked back. He has owned, to date, over 60 mobile devices over the last 15 years and mobile technology just clicks with him. In addition to being a News Editor and OEM Relations Manager, he is a Senior Moderator and member of the Developer and Moderator Committees at XDA. View jerdog's posts and articles here.
Mario Tomás Serrafero · Mar 30, 2015 at 11:20 am · 1 comment

M9: Is Throttling a Non-issue? Can’t We Trust Benchmarks?

When the first reports of the M9 overheating came to light, many forum users began a collective joke-round calling the phone a popcorn machine, a grill, and other unoriginal remarks that we’ve seen with every device that presents sign of overheating, from gaming consoles to graphics cards. In this sense, the internet is not very inventive, and the cycle of rehashed jokes re-surfaces on different products every year or so. This time it was the M9’s turn and it was...

XDA NEWS
Mathew Brack · Mar 30, 2015 at 09:00 am · 2 comments

What’s Next For Pebble?

It is all well and good stating figures, but what does $20 million of crowd funding mean for a company? The Pebble Time just recently ended their Kickstarter with over 4000% of their initial request which was just $500,000.  This level of funding is unprecedented for Kickstarter and it passed $1 million in less than an hour bringing with it a level of fame unavailable to many other OEMs.     Produced by the Pebble Technology Corporation (PTC), the Pebble Watch has...

XDA NEWS
Jimmy McGee · Mar 30, 2015 at 06:00 am · 4 comments

LG G4 Note Picture Leaked, Oxygen OS Delayed – XDA TV

The LG G4 Note has been leaked! That and much more news is covered by Jordan when he reviews all the important stories from this weekend. Included in this weekend's news is the news of the delay in the release of Oxygen OS and be sure to check out the article talking about installing Android 4.4 Kitkat on a laptop. That's not all that's covered in today's video! Be sure to check out the other videos released earlier this week...

XDA NEWS
Share This