Open Source & Free  

Questions of the Week 35

This week has been a bit slow with features and external progress as we’ve started to focus on the issues for the January release of 3.6. During December we’ll probably pause blogging between December 22nd and January 2nd as it would probably get lost to the ether for most of our audience. I’ll still be Questions of the Week 35

Seamless Storage Encryption

We had support for bouncy castle encryption for quite a while but it is not as intuitive as we’d like it to be. This makes securing/encrypting your app painful and so we procrastinate and eventually skip that “feature” altogether. Frankly, I hate working on encryption it’s painful…​ That’s why we procrastinated on this feature until Seamless Storage Encryption

Default Validation Emblem

The validation framework makes it easy to verify input quickly and effectively. Up until now you had to define an emblem in order to create an error icon and if you didn’t you had to define an “Invalid” UIID for every entry. This exists by default for text fields and other types but is still Default Validation Emblem

TIP: Avoid 2D Arrays

In the first betas of Codename One we had a lot of bugs related to 2D arrays due to XMLVM. We no longer use XMLVM but the recommendation to avoid 2D arrays remains. We still use them in some occasions e.g. in the creation of a DefaultTableModel but the implementation discards them in favor of TIP: Avoid 2D Arrays

Questions of the Week 34

While I find these posts useful I think it’s time to re-think this post which is overly mechanical and only post interesting news from the week rather than “everything”. So this week we’ll try something new, I’ll discuss the news in general and the questions/answers I find valuable only. I’ll ignore the other questions and Questions of the Week 34

Request Body, Dialog & Border Layout

Subclassing isn’t bad but it becomes tedious especially if it’s just there to implement something trivial. One of the pain points we had with the ConnectionRequest API’s is the submission body wasn’t as convenient as it should be. E.g. if my web service accepts JSON in the post argument I have to write something like Request Body, Dialog & Border Layout

How you can Help Spread Codename One

I’ve written this in emails before and on quite a few occasions but this bares repeating. Gaining visibility in this industry is tough especially when the industry is driven by the likes of Google, Facebook & Apple. Despite years of effort, most Java developers or mobile developers haven’t heard about us and it’s still an How you can Help Spread Codename One

Connecting to a MySQL Database from Codename One Part 2: Pure Java

In my last post I demonstrated how to integrate a MySQL database into a Codename One app using Xataface as a web service layer. In this installment, I’m going to demonstrate how we can build an equivalent app using a Java web service layer. Requirements For this tutorial, I’ll be using NetBeans 8.1 and its Connecting to a MySQL Database from Codename One Part 2: Pure Java

TIP: Cross Platform Update Available Strategy

One of the nice things in mobile development vs. desktop is the fact that updates are seamless. We supposedly don’t need to worry about them and most newer OS’s turn them on by default. This keeps are users with the latest version which is important, e.g. if we fixed a crucial bug or added a TIP: Cross Platform Update Available Strategy

Questions of the Week 33

This has been a very busy week, we published new information on the properties approach which I’m excited about but I’m not sure if I can drum up your enthusiasm…​ Steve made a big post about mysql support too. Todays library update includes new simulator code that might break some apps if you’ve refactored stuff Questions of the Week 33

Connecting to a MySQL Database from Codename One

In the following series of blog posts I’m going to shift some attention to server-side development in so much as it can complement a Codename One client application. In this post I’ll demonstrate how you can combine a MySQL database, a web-service layer, and a Codename One client to produce a “Contacts” app. I’m going Connecting to a MySQL Database from Codename One

Fail Fast & Margin/Padding Performance

One of the frustrating parts in Codename One is builds failing in the cloud, the expectation is that a build that passes locally would pass in the cloud and that is something we strive to have at all times. One of the more common failures for new developers is due to refactoring of the main Fail Fast & Margin/Padding Performance