That's a myth often seen in "deploy everywhere" mobile dev tools, in reality the design habits/guidelines between the two platforms have a lot of difference and you need a separate UI layer for each more often than not.
Doesn't change the awesomeness of RoboVM, but it had to be said.
Phonegap is a great tool for writing code once (html5 & javascript) & deploying to many platforms with native capabilities.
I suspect it's not quite there for games, however it has great performance for most CRUD apps.
---
Re: RoboVM, I suspect there will be libraries that will properly use iOS-like UI. Some logic branches will be required, however the main flow is centralized and DRY.
---
There's also cross platform, openGL based tools. If you are making an openGL game, you minimize your need to use the native UI.
I created a game [2] in LibGDX for Android, set it up on the Mac, right clicked and it just worked. Not deployed to the app store yet but I will be doing.
I just released my latest Augmented Reality "game" [3] on Google Play which uses Vuforia [4] for the AR, and am in the process of writing the RoboVM bindings for it. Once I've finished that I'll submit it back to robovm-ios-bindings so you should be able to write AR apps for iOS and Android at the same time.
[0] https://github.com/BlueRiverInteractive/robovm-ios-bindings
[1] http://libgdx.badlogicgames.com/
[2] https://play.google.com/store/apps/details?id=com.simplyappe...
[3] https://play.google.com/store/apps/details?id=com.simplyappe...
It's amazing to me that I can write my game completely in Java and get a performant AOT compiled version that runs on iOS.
RoboVM really is amazing for indie game devs, and it's open source. I've already donated around $300 to the project.
I've also done tests to see if other JVM languages work with RoboVM. So far, I have been able to get games written in Kotlin running. Can you imagine writing a game in a nice modern JVM language like Kotlin or Scala, and then being able to publish it to PC, Android , HTML5 and iOS? That's what is possible now, and all with open source.
Obviously, for those who develop non-game apps, native UI concerns mean you can't just publish the same thing to both Android and iOS, but for games that isn't an issue.