Latest posts from Codename One.
Blog

Unleading & Mutating Accordion
We covered the new Accordion component last week and just started using it in a demo for which it was very suitable. As we were working with it we discovered that it was missing some core methods to remove an Accordion entry or change it’s title. But worse, was the fact that a delete button in the title wouldn’t work! The crux of the issue is in the fact that lead component doesn’t support excluding a specific component within the hierarchy from it’s behavior so we set about to fix that… ...

Questions of the Week XI
We just released an updated set of plugins with many bug fixes and enhancement mostly revolving around the new settings UI but also a lot of the functionality required for proper Windows UWP support… This has been a very busy week for us although most of the stuff we did was “under the hood” and not as visible as some of the previous weeks. We are also fast approaching the 3.5 release due this August so hopefully we can get our ducks in a row to create another compelling release. ...

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. ...