Latest posts from Codename One.
Blog

Clock Demo
We’ve been working very hard on updating a very ambitious demo for this week but alas it still isn’t ready… In the meantime we decided to modernize the clock demo which is an important demo that is missing from the IDE’s for some reason which is a shame because it’s probably our only low level graphics focused demo… Check out a live preview of the demo on the right here thanks to our JavaScript port! ...
Parse Update, Faster Windows Desktop & UWP Guide
Chidiebere Okwudire of SMash ICT Solutions just released version 3.0 of the parse4cn1 library. The biggest feature of which is support for the open source Parse server which should work with some of the parse alternatives that popped up to fill the void left by Facebook. This is great news. In a way I’m more optimistic about the future of Parse than most other MBaaS (mobile backend as a service) solutions (e.g. Firebase). Now we have competition and options within the Parse space which aren’t as common for other MBaaS solutions. ...

Background Fetch
Background fetch allows an app to periodically “fetch” information from the network while the app is in the background. This is scheduled by the native platform, where apps that support background fetch will be started up (in the background), and their performBackgroundFetch method will be invoked. __ | Since the app will be launched directly to the background, you cannot assume that the start() method was invoked prior to the performBackgroundFetch call Implementing Background Fetch Apps that wish to implement background fetch must implement the BackgroundFetch interface in their main class. ...

iOS Migration Setback
A couple of weeks ago we detailed a plan to migrate to the new xcode 7.x build servers. We tried this migration over the weekend and while for most developers this worked rather nicely for some there were issues that we can’t explain so we decided to revert the change and regroup. We want this transition to be smoother than past transitions and since we aren’t currently working against a deadline we feel we have some time to refine this migration to a point where it will be seamless for all/most of our users. ...

Accordion Component
The Accordion ui pattern is a vertically stacked list of items. Each item can be opened/closed to reveal more content similarly to a Tree however unlike the Tree the Accordion is designed to include containers or arbitrary components rather than model based data. This makes the Accordion more convenient as a tool for folding/collapsing UI elements known in advance whereas a Tree makes more sense as a tool to map data e.g. filesystem structure, XML hierarchy etc. ...

Questions of the Week X
This has been a tremendous week with a lot of news & next week will be even more hectic! Next week we will turn on the new iOS build servers by default which means a huge change is coming the biggest is probably http connection problems but I’m sure we’ll run into quite a few other issues… Please let us know immediately as you run into issues… Onwards to the activity on stackoverflow this week: ...

iOS Http URL's
We’ll be migrating to the new iOS build servers this Sunday & this does entail one major thing you need to be aware of. With the new version of xcode http URL’s are blocked by Apple. We blogged about this a while back but this bares repeating as it’s something a lot of you will start running into. To get an overview of the issue check out this article or the actual document from Apple. In a nutshell http URL’s are no longer supported by Apple to facilitate proper security. ...

Social Boo Revisited
SocialBoo originated from the same app design vault set of designs that brought us the Chrome Demo. This demo uses a somewhat outdated but still reasonable gunmetal look, it also features different UI styles when running on a tablet/phone. Notice in the screenshot above that the UI for the demo differs when running in a phone/tablet and even changes when the tablet flips between portrait and landscape… This demo was originally created using the old GUI builder but was modernized to use the new GUI builder. ...

Codename One Store
Are you interested in selling your custom made themes, templates & libraries for Codename One? Eric Dodji Gbofu founder of Codename One Fr and author of the French language Codename One book is launching a Codename One store. This is meant as a Codename One equivalent to sites such as theme forest that provide ready made templates of various kinds for a reasonable price. It answers a very common need within the community to get started with a cookie cutter solution. ...

Toolbar Search Mode
The Toolbar is a pretty flexible API for handling the title area. It allows a lot of things including search but up until now that very common use case was not a standard part of the API. It is now, we just added a new API that effectively allows you to bind search to a form and just get the text searched as part of the callback. The Toolbar handles everything else including replacing the title area and returning it back to its original state when you are done. ...
Java Developers can FINALLY Target Windows UWP
After many months of work and effort put in by all of us but especially by Steve Hannah and Fabrício Carvalho Cabeça we are finally live with the Windows Universal Platform (AKA UWP) native build target! As far as I know Codename One is the only native option for Java developers to build native Windows UWP apps. __ Notice that this target is still in technology preview stage! Please report any issue you run into Besides the effort of building the Codename One port with everything it entails (including newer build servers) we also leveraged the ambitious iKVM project which we had to modify extensively with the help of some community members specifically Eugene who proved very helpful during this work! ...

Questions of the Week IX
This week has seen a lot of announcements and looking at the submission queue for next week it looks like it will be jam packed with updates and new features. Today we have a new plugin update which is jam packed with features and changes, the biggest of which is the removal of all the skins (they are now in the More menu item). We also have a lot of great new features in this plugin including Windows UWP build preview, new settings UI & much more! ...