Header Image

We are thrilled to announce the immediate availability of Codename One 3.2!
Version 3.2 sets the pace for many upcoming features & migration processes such as the
new cloud infrastructure for push servers, modernized GUI builder etc.
Codename One 3.3 is currently scheduled for January 27th 2016 and should continue the trend of iterative changes
that form a larger platform evolution arch.

Highlights Of The Release – Click For Details

____New GUI Builder (technology preview)

The new GUI builder is a big departure from our existing
designer tool. This tool is now in “technology preview” status meaning that its not quite ready for
prime time but we want feedback on its direction and issues.
Read more about this work in this blog post.

____Local Notifications on iOS and Android

Local notifications are similar to push notifications, except that they are initiated locally by the app,
rather than remotely. They are useful for communicating information to the user while the app is running in the background, since they
manifest themselves as pop-up notifications on supported devices.
Read more about this work in this blog post.

____Introduced New Push Server Architecture

We completely overhauled the way Codename One handles push services
and added several long time RFE’s to the mix.
Read more about this work in this blog post.

____Added Ability for cn1libs To Include Build Hints

cn1libs now include the ability to include build hints thus
integrate more seamlessly without complex integration instructions.
Read more about this work in this blog post.

____Improved iOS/Android Rendering Speed

Thanks to a community contribution we took a deep look at the rendering
code and are using faster code for tiling/string rendering.
Read more about this work in this github pull request.

____Added A Permanent Side Menu Option

The Toolbar API has really picked up, in order to make it more useful for Tablets
we added the ability to keep the SideMenuBar that’s builtin to it always on.
Read more about this work in this blog post.

____Get All Styles – Simplified Handcoding Theme Elements

getAllStyles() allows writing code that is more concise to perform an operation on multiple
style objects at once.
Read more about this work in this blog post.

____Added Support For Facebooks “Invite A Friend”

New integration for Facebooks “invite a friend” feature that simplifies
viral marketing for your app.
Read more about this work in this blog post.

____Terse Syntax For Building UI’s

A shorter syntax for adding components and labels into the UI resulting in less code for the same functionality.
Read more about this work in this blog post.

____Java 8 Language Features are now on by default

We fixed many things in this implementation over the past
three months and feel confident enough to switch this into the default.
Read more about this work in this blog post.

You can also read the far more detailed list of release notes here.

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.

Diamond says:

Thank you guys for the hardwork,

My build always fail whenever I send a build using 1.8, I got a message that codenameone supports up to 1.7 java version… Does the build server support 1.8 now?

And may I ask if “background process while app is not running” would be implemented anytime soon?

Shai Almog says:

You need to explicitly use the Java 8 support either by migrating your project to a Java 8 project type or creating a new project. Our server code converts Java 8 bytecode down to Java 5 making this seamless to our servers.

Background processes is something we slated and discussed for 3.2 and worked on a lot. The end result was just background notifications which IMO is the least important of the bunch. Hopefully this will land sooner rather than later.

Diamond says:

Hi,

How do I add MultiImages or create UIIDs in the new GUI Builder.

Can we have a double click function on components to open their properties please.

Dragging components crashes the Gui Builder sometimes.

When I delete component, it doesn’t disappear from the tree and if I try to delete it again, the Gui Builder crashes.

When I select a Container that has one component inside, I got properties of the component and not the container itself.

Most of this stuff happens randomly.

Shai Almog says:

Hi,
are you sure you are building with the right account? It should be logged to the console.

Gerben says:

Turned out we had paypal issues and our account was terminated or something like that at the exact moment I installed 3.2. But is was unrelated.

Shai Almog says:

Hi,
adding multi-images is part of the theme which is a separate feature altogether. You need to still do that with the old designer and it will be accessible then. The same is true for creating/manipulating UIID’s. We’ll replace the theme generating functionality in the old designer using a different tool, it was a mistake mixing everything into a single tool.

Single clicking a component in the UI opens its properties on the left side. If you pick it from the tree then it will be selected as you change the tabs. Notice that properties are now split into “Basic”, “Advanced” & “Events” (at the bottom of the tab). There is also a separate tab to control layout.

If you get crashes or errors a log would be nice, we will add some better crash logging for the next update and hopefully start fixing these bugs quickly.

Tom Arn says:

Is the source code of the new gui builder already available for download?
Best regards
Tom

ahmed says:

The latest version i get in intellij is 3.1

Shai Almog says:

Our plugins aren’t open source and we are looking at the new GUI builder as a part of the plugin so at this time we don’t plan to open source it.

Shai Almog says:

We are working on a partial rewrite of the IntelliJ plugin, this is taking some time.
Most features of 3.2 are available on IntelliJ via a library update.

Yaakov Gesher says:

After upgrading to 3.2, using the old GUI Builder, every time I make a change in a form I get a little popup saying “GUI Builder error – undoing”, but it doesn’t actually undo the changes made.

Shai Almog says:

Can you run the GUI builder from command line and get the logged output when you get that error?

Yaakov Gesher says:

What’s the command I use for that?

Shai Almog says:

java -jar ~/.codenameone/designer_1.jar
~ is the home directory if you are doing this in Windows and you would naturally need to reverse the slashes.

Yaakov Gesher says:

I’ll email you the stack trace.

Shai Almog says:

I see the issue but I don’t think its a regression since this is pretty old code. Did you change something with the TableLayout in that hierarchy?
Can you change the column count to be larger or is this inaccessible in the GUI?

Yaakov Gesher says:

Yeah, I realized later that I was adding components beyond the TableLayout’s defined row count. But shouldn’t there be a more user-friendly error message?

Shai Almog says:

It auto increments the row. This is a bug that we fixed.

That’s just a workaround until we provide a new version of the designer.


Discussion

Join the conversation via GitHub Discussions.