Re:Java on iPhone,Android,Win,RIM and Desktop
by fishyfishy on Wednesday May 28, 2014 @08:25AM
(#7809537)
Codename One has one Java API to access all device capabilities such as:camera, gps, file system, maps and more... and it has one Java API for lightweight GUI, which allows great portability between supported platforms.
robovm is good but mostly relevant for games with libgdx.
[ Parent
| on HN ]
Re:Java on iPhone,Android,Win,RIM and Desktop
by ntherning on Wednesday May 28, 2014 @11:20AM
(#7810683)
Codename One and RoboVM solve different use cases. If you can live with the limitations of a "common denominator" API, a UI toolkit that tries to mimic the native look and feel ala Swing and a limited subset of Java 5, Codename One is great since it allows you to use a single codebase and deploy to many different device types.
RoboVM on the other hand lets you use all the native iOS APIs from within Java and has a runtime library based on Android which limits you only to roughly the Java 6 APIs. As long as you structure your code properly RoboVM makes it possible to reuse large portions of your code between the Android and iOS versions of your app. So if you'd rather build an app that is truly native with a native UI and still want to be able to share code with Android RoboVM may be a better fit. And it's definitely not just for games even though libgdx+RoboVM is a killer combination.
Re:Java on iPhone,Android,Win,RIM and Desktop
by programminggeek on Wednesday May 28, 2014 @08:44AM
(#7809597)
Oh so it's like Xamarin but for Java?
Re:Java on iPhone,Android,Win,RIM and Desktop
by fishyfishy on Wednesday May 28, 2014 @09:00AM
(#7809648)
similar, only better.
In Codename One you end up with 1 java project to maintain for all supported platforms, in xamarin you end up with 2 project to maintain in c# (1 for each platform: iOS, Android)
Re:Java on iPhone,Android,Win,RIM and Desktop
by glowstickhero on Wednesday May 28, 2014 @11:12AM
(#7810367)
You might want to check out Xamarin's announcement about Xamarin 3. "Xamarin.Forms is a new library that enables you to build native UIs for iOS, Android and Windows Phone from a single, shared C# codebase"
Re:Java on iPhone,Android,Win,RIM and Desktop
by deskamess on Wednesday May 28, 2014 @09:50AM
(#7809862)
Are you limited to a particular version of the jdk or can we use 7+?
Re xamarin... anything they do well that you do not (yet)?
Re:Java on iPhone,Android,Win,RIM and Desktop
by fishyfishy on Wednesday May 28, 2014 @10:19AM
(#7810026)
It's a Java 5 subset, but we have plans for Java 8.
Re xamarin - it's a good product targeted for c# devs