Latest posts from Codename One.
Blog

You are cordially invited
This has been a busy week, I am gearing up for my LTS lecture on the 30th. Its free for everyone and I hope you all tune in to watch it! The subject matter should be interesting to all Java developers and its essentially how you build a cross platform solution implementation, you don’t need any knowledge of Codename One since I won’t be discussing it much. Its about device issues and how these work with the JVM. So feel free to distribute this to your friends who aren’t necessarily Codename one developers. ...

iOS Code Signing Fail Checklist
This is one of the biggest FAQ’s we get on the mailing list: I followed the iOS signing tutorial or video tutorial and still didn’t succeed in signing (notice that you need to actually read the links above, the certificate you get from the apple website is not enough!). How do I debug something like this? Notice that some of these signing failures will sometimes manifest themselves during build and sometimes will manifest during the install of the application. ...

Java One Detailed Trip Report
There is absolutely no way I can recall everything that went on in JavaOne but I will try to do my best. I arrived sick and on pretty strong medication for my sinuses so my recollection might be a bit hazy, I did meet great people and had loads of fun. Before JavaOne started I had a meeting with Arno of the XMLVM project, I was hoping to get more facetime with him and to maybe actually code something together but he was on his way for the rest of the week due to other duties. We discussed some of the issues with XMLVM and the potential of forking vs. merging our changes with the main XMLVM code base. The way things look it seems that we will have to take over XMLVM or at least the iOS/Windows Phone ports. ...

JavaOne Trip
I’m writing this from the lobby of the Hilton hosting the JavaOne conference a bit jetlagged, Geertjan invited me to speak at the NetBeans day which was great. However, the best thing was meeting James Gosling and talking to him about Codename One! I had a lot of doubts about making the trip so soon after JavaZone trip but Geertjan convinced me by mentioning that there is a chance of meeting Gosling which was pretty much the thing that convinced me. So for me the trip is now a huge success. ...

On The Side, Up On Top
A lot has happened with the side menu bar (the Hamburger Menu ) since we initially launched it. We now support a lot of new features seamlessly such as swiping the sidemenu in/out and various other capabilities. The other day we added support for side menus on the right and top as well as multiple buttons on the side menu title bar. So lets get started with the features, first is one of the newer features up our sleeve, the ability to place a side menu on the right, top or on both sides of the title (as in the facebook app). You can ...

Faster iOS Runtime – JavaZone Edition
Before we get into the subject of today’s post a small public service announcement: we recently added the ability to create annual pro subscriptions. This provides a 10% discount over our standard pro subscription rates. I’m writing this while preparing for my JavaZone flight. What you see in the picture on the right is the typical content of my backpack which I carry with me everywhere in case there is a problem I need to debug, this is somewhat of a visual tutorial of “what it takes” to be a mobile developer today. I took this picture for the JavaZone presentation I’m making and I think it illustrates well why Codename One exists (BTW it is missing some of my testing devices such as the iPad 2, the Android tablets and a few J2ME phones). From left to right top to bottom: ...

Attachments, Network Speed and More
Our email api only supported a single attachment until now. We just added an api that allows for multiple attachments which we will add in the next update. Notice that multiple attachments will only work on iOS/Android at the moment. Also in this update you would find a fix for the Twitter service (see the TwitterRESTService class) and some other capabilities such as support for network performance issues. ...

Till The End Of The Form
We’ve had pull to refresh for quite some time which is a really nice feature useful for pulling new updates. We also always had infinite lists using a smart list model approach, however up until now we didn’t have a standard implementation of an infinite container with arbitrary components. In some of the newer web UI’s such as Tumblr and Twitter the data is fetched dynamically when you reach a fixed location in the form, this is a simpler approach than the one demonstrated by the list model but in some regards its more practical. A user can’t just start jumping around and fetching the entire list, this works better with most REST API’s and is pretty powerful on its own. ...

Completion, iOS 7 Update And The 20M Mark
Exciting news this week, Chen FINALLY did what we procrastinated on for so long and wrote an auto-complete text field! This is really easy to incorporate into your code, just replace your usage of TextField with AutoCompleteTextField and define the data that the auto complete should work from. There is a default implementation that accepts a String array or a ListModel for completion strings, this can work well for a “small” set of thousands (or tens of thousands) of entries. ...

Folk Dancing And General Updates
Who would have thought Hungarian folk dance would be so entertaining! Can’t. stop. watching…. Its been a busy week mostly spent on updating the build server code so its iOS 7 ready, during that time we also managed to get some other things done… These are some of the highlights: You may recall the ImageViewer class that I mentioned a while back , it will now be a part of the designer and has some small improvements to its event handling as well as keyboard handling. ...

Codename One Article In SDJ
Remember the Poker app we teased a couple of weeks ago ? Now you can read all about it in SDJ, the entire article is in the downloadable PDF (please buy the magazine!). We’ll try to post the full source code into SVN and get into more details about it here. If you have any questions/comments related to the article feel free to ask in the comments section right here. ...

It's In The Bag
GridBag that is. So GridBagLayout is one of the most notorious of the layout managers in Java in fact for many developers it symbolizes the failure of the layout manager concept. That is the main reason why we never added it. Last week I had a very interesting conversation with a very prominent Swing developer and he asked me whether we had gridbag support. I answered that we do not and repeated the regular “no one likes it” line, turns out he does like it and has a lot of Swing code that uses GridBag! ...