Dr. Sbaitso Coming To Riga

Post Image

I'll be speaking at Riga Dev Day next week and I've been working on a demo for the conference. Back in my teen years I bought the SoundBlaster 1.0 which was one of the first affordable soundcards for the PC. One of the killer demos that shipped with it was a silly command line AI psychoanalyst by the name of Dr. Sbaitso that would try to dish out a...

Read More

The toArray(new Array) Antipattern

Post Image

A recent issue in the issue tracker on the new iOS VM reminded me of a serious pet peeve and big design mistake in the Java Collections API, something that is just unfixable and wrong yet appears often in code from developers trying to be clever. If you have a collection and you want to convert it to an array you can do something like: Object[] m...

Read More

Game On

Post Image

A Codename One community member Antonio Mannucci offered to release a gaming API that he created a while back. It took him some time but he finally delivered on his promise by releasing a cn1lib for simple 2D games in Codename One and a demo game to go with it. The project is still pretty rough in the sense that there is no real documentation or ...

Read More

Cats in Toolbars

Post Image

Chen spent some time working on some Toolbar effects such as the rich title areas made popular by social network apps such as G+ & Twitter. The new Flickr demo in SVN now shows a really cool ability to fold the title bar as we scroll down and expand it when we scroll up. It also shows an image based title area that can fade out of view during scro...

Read More

Happy New Year - Looking Back & Forward

Post Image

We are closing 2014 which has been a pretty eventful year for us where we finally solidified Codename One, looking into 2015 we have a lot of great plans ahead! The new year seems like a great time to discuss some of our short/long term plans for Codename One as we move forward and our general thoughts. But first I'd like to open with the things we...

Read More

Stabilizing The New VM

Post Image

Its always a challenge to migrate to a new implementation and the new VM is no exception, we ran into several issues and are already hard at work fixing them. Currently resolved are: Issue 1149: ios.newVM causes exception on Calender.getTime() Issue 1151: array index out of bounds exception with ios.newV...

Read More

New Codename One iOS VM Is Now The Default

Post Image

New builds sent for iOS will now use the new iOS VM by default, this will deliver a lot of new features: stack traces, 64 bit, xcode 6+ support, iPhone 6/6+ native resolution, no stall GC etc. We spent a great deal of time stabalizing the new VM but obviously it can't be as mature as our existing XMLVM backend and so it is quite possible that you w...

Read More

Toolbar

Post Image

One of the common requests we get from users is more customization for the title bar area with more flexibility e.g. placing a TextField for search or buttons in various ways. Chen recently took action on this by introducing the new Toolbar API that replicates some of the native functionality available on Android/iOS and integrates with features su...

Read More

Lollipop Take 2 & iOS VM Stability

Post Image

Our previous attempt at getting the new Lollipop behavior on Android OS 5 didn't go as well as we had hoped. While we can't find any device that failed we got a lot of community reports of various 4.x devices that just stopped working right after we made the changes recommended by Google. We tried to resolve them using several different tricks all ...

Read More

JSON To Pojo Mapping

Post Image

While the webservice wizard in Codename One is pretty useful for many things it still requires a proxy and Servlet container which might not be the right choice for everyone. Steve Hannah, created a pretty cool set of tools to map POJO's (plain old Java objects) to JSON structures by using compile time object mapping. This eliminates the costs/issu...

Read More