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:
Jimmy McGee · Jan 30, 2015 at 06:00 am · no comments

Note 4 CM12 Nightlies, Microsoft Investing in Cyanogen – XDA TV

CyanogenMod 12 Nightlies are now available for the Samsung Galaxy Note 4! That and much more news is covered by Jordan when he reviews all the important stories from this week. Included in this week's news is the announcement of factory images for the YU Yureka and be sure to check out the article talking about Microsoft investing in Cyanogen, Inc! That's not all that's covered in today's video! Jordan talks about the other videos released this week on XDA...

XDA NEWS
Mario Tomás Serrafero · Jan 29, 2015 at 04:28 pm · 4 comments

Microsoft To Invest in Cyanogen’s Future OS War?

Reports indicate that Microsoft is investing in the rogue Android forker Cyanogen. The funding round is said to be upwards of $70 million, and could allow for a cooperation between Cyanogen and the Silicon Valley giant in the ongoing battle of mobile operating systems. This could be a strategic movement in coordination with other investors given Cyanogen's expression of rebellion against Google's tightening control over Android, as the custom ROM maker has recently spoken out against the "tyranny" of Google in regards...

XDA NEWS
Mario Tomás Serrafero · Jan 29, 2015 at 02:29 pm · 2 comments

Samsung Cutting Bloat, Trimming TouchWiz

Reports keep iterating over the rumors that Samsung has been trimming down TouchWiz for its upcoming devices. After years of customer complaints, particularly from power users, Samsung seems to finally have taken initiative towards cracking down the stutters that often plague some of its devices, particularly older ones or those that see a long life without clean-ups. But even handsets like the Galaxy S5 managed to be outperformed by low range devices. Android enthusiasts as a whole took disdain in Samsung's...

XDA NEWS