Codename One supports embedding a full Cordova application as is see our announcement on the subject. Codename Ones native capabilities still have the following additional advantages over HTML5:
- Performance – HTML5 is slow to begin with but made slower on devices due to some architectural choices on iOS devices.
- Portability – while HTML5 on the server side can be ported with some effort, when embedded using PhoneGap like packaging adapting the UI for multiple DPI’s becomes challenging. Web technologies were designed for HTTP delivery not for local execution. Codename One was built from scratch to work on all DPI’s and provides the visual tools to do so.
- Power – mobile browsers are fragmented and constantly late with new features requiring a full OS upgrade for new features. Basics such as threads aren’t at the moment of this writing supported by any device. Codename One provides most of the power and convenience desktop Java developers are used to.
- Stable target – since your code executes on the device browser you are very likely to have device only issues that can’t be debugged properly. Codename One is statically linked to your application which means you will have a stable application with an identical version of Codename One on all devices! Since the code is handled by a single entity if you run into problems we can actually help you fix them!