Post Image

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 this should make the post more "digestible".

Read More
Post Image

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.

Read More
Post Image

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 Google and Apple...
Despite years of effort most Java developers or mobile developers haven't heard about us and it's still an uphill battle for awareness.

Read More
Post Image

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.

Read More
Post Image

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 new monetization option...

Read More
Post Image

Questions of the Week 33

This has been a very busy week, we published new information on the properties approachwhich 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.

Read More
Post Image

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 to steal the Contacts code from the Kitchen Sink demo for the UI, but I'll implement a different datasource that loads the contacts from a remote MySQL database instead of from the phone's internal contacts.

Read More
Post Image

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 commonfailures for new developers is due to refactoring of the main class or changing the signatures of the methods e.g. adding a throws clause to `start()`.

Read More
Post Image

Properties

We usually just add a new feature and then tell you about it in these posts but properties is a special case and this post is intended not just as a tutorial but as a solicitation of feedback...
We committed properties as a deprecated API because we aren't sure yet. This could be a very important API moving forward and we want as much peer review as possible over this.

Read More