Latest posts from Codename One.
Blog

Migrating Your Project to Maven
As you may know, we are moving to Maven for our build tool. As part of this transition, we are moving towards a single Maven project structure, and away from separate structures for each IDE. This will be easier to maintain, and will also make it easier to collaborate on projects with other developers who use a different IDE (or no IDE at all). We have also introduced a online new tool for creating new app projects called Codename One initializr. Alternatively, you can create new projects using the cn1app-archetype (for App projects), and cn1lib-archetype for library projects. ...

Maven Project Structure
As a follow-up to our recent announcement about transitioning to Maven, this post provides an overview of the new project structure. Tip If you want to follow along with this tutorial, you can quickly generate a new project using Codename One intializr. The new project structure is based on the cn1app-archetype. You can see the basic file layout by looking at the archetype-resources directory of that project. Some Highlights: 1. This is a multi-module project with sub modules for each target platform. ...

You Can Now Build Android & iOS Apps Locally
Due to popular demand, we are officially providing local build support for iOS, Android and cross-platform JavaSE Desktop apps. No build server or Codename One account required. The Build Server has been a fundamental building block of Codename One from the very beginning. In the fractured world of mobile development where you need the latest Mac running the Latest Xcode to build for iOS, and the latest Windows running the latest Visual Studio to build for Windows, the build server reduced your system requirements to JDK 8 and an IDE. In general, this was a big win, and it makes mobile app development much more pleasant. ...

Moving to Maven
Codename One is migrating to Maven. This will simplify some aspects of our build process and update/dependency management. As the headline states, we’re moving to Maven, and leaving the ant-infested old build system behind. To be honest, I love using Ant. It is quick and dirty, and let’s me assemble ad-hoc build workflows with little effort. Migrating to Maven, at times, felt like strapping on a pair of cement boots. It is much more rigid than Ant, and much more opinionated. It’s the “Maven” way, or you’re in for a world of pain. ...

Data Processing in Codename One apps
The following recipes relate to data processing and conversion in Codename One apps. This includes parsing data like JSON, HTML and XML. Parsing HTML Problem You want to parse some HTML content into a data structure. You can’t simply use the XMLParser class because the content is not well-formed XML, but you would like to be able to work with the parsed document using the same tools (e.g. Result and Element.) Solution Use the HTMLParser class from the CN1HTMLParser cn1lib. It contains a simple API for parsing an HTML string into an Element, the same type of element that XMLParser returns. ...

Customizing Themes Of Codename One Apps
Recipes to customize the look and feel of Codename One apps using Themes, CSS, Styles, etc. The following recipes include tips on customizing the look and feel of Codename one apps using themes, CSS, styles, etc. Platform-Specific Styling Problem You have used CSS to style your app, and it looks great on some devices but not on others. You want to change the font size of some styles, but only on specific devices. ...

Introducing Codename One 7.0 (AKA Video)
We’re thrilled to announce the immediate availability of Codename One 7.0 (AKA Video). This has been our most challenging release to date. We constantly shifted the release date due to constantly shifting requirements and pivotal changes. Highlights of this Release Here are the highlights of Codename One 7.0 WebRTC Support This is probably one of the biggest challenges we took to date. We now have one of the best cross platform WebRTC implementations. This took a lot of work and proved to be a huge challenge in every single platform. ...

Code Freeze for Codename One 7.0
At long last we’re entering code freeze for Codename One 7.0. This release cycle has been longer than it should have been because of many detours along the way. But finally if all goes according to plan, version 7.0 should be out next Friday. The code freeze won’t impact most of you as it’s mostly an artifact of our release cycle. We will have the regular Friday release but will only have critical reviewed commits during this week. Archived Comments This post was automatically migrated from the legacy Codename One blog. The original comments are preserved below for historical context. New discussion happens in the Discussion section. ...

Top 10 Best Cross Platform App Development Frameworks in 2024
These top 10 best cross-platform app development frameworks in 2024 help app developers with code reusability, better ROI, easy maintenance and shorter time to market. With the rapid advancements in technology in today’s highly competitive digital sphere, developers are continuously on a hunt for app development tools or frameworks that can make their job easier and minimize app development time and cost. Consequently, now in 2024, you will see that an overwhelming amount of cross-platform app development frameworks have emerged to bridge that demand. The increased frequency of search queries can be seen by looking at Google trends’ indicators from 2010 to date. ...

Why You Should Learn Spring Boot in 2021?
Spring Boot is an open source Java framework used to create micro services. Learn why you should learn Spring Boot in 2021? What is Spring Boot? Spring Boot is a lightweight framework for Java developers to develop stand-alone and production-grade spring applications that “just run”. Spring Boot shortens the Spring framework code length and provides you with the easiest way to develop an application with minimum configurations. You can call it a framework of framework as it supports many frameworks such as Hibernate, EJB (Enterprise Java Bean) etc. ...

Codename One Control Center Desktop App
We have recently released a new tool named Control Center. Some of you may ask why have we released a new tool? You already have quite a few: IDE plugins, builds dashboard, preferences app, simulator, designer, GUI builder and more. Why? Well the main reason behind this new app is exactly because we have plenty of tools. The new Control Center App’s aim is to consolidate the many tools we have which will make your life easier and ours much easier to release updates and to introduce new features and support. ...

A Junior Software Developer’s Journey at Codename One
Hello Codename One community, my name is Sergey Gerashenko. I’m a junior software developer at Codename One. My journey here began 3 months ago when I passed my first interview at Codename One and my first task was to learn Java within 2 weeks. Learning Java I knew a few programming languages like Python, C and C++ but was unfamiliar with Java or managed languages beforehand. Learning a completely new language in just two weeks seemed like an impossible task at first because it took me around five months to learn C++. ...