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

Continuous Integration

Post Image

Building enterprise mobile apps can be pretty challenging especially when dealing with rapid changes, prototyping and corporate development requirements. One of the tools that has really revolutionized this field is Jenkins and related CI tools that allow developers to instantly track failures back to a specific revision of their code commits with...

Read More

Round At Codemotion

Post Image

I've had a lovely time giving a demo of Codename One at Codemotion Tel Aviv, one of the things that surprised me about the conference is that the sessions are so short (40 minutes) which gives very little time to actually get into code. So to fit both details about Codename One, Demo etc. and an app I had to narrow this down to the most barebone Co...

Read More

SMS & Custom Commands

Post Image

One of the problems in cross platform development is availability of functionality on one platform that is missing on another. Case in point sending an SMS message. Android, Blackberry & J2ME support sending SMS's in the background without showing the user anything. They even support a form of intercepting incoming SMS's to one degree or another (but that...

Read More

Static Garbage & Lollipop

Post Image

As we wrote before our new Garbage Collector is designed for amazing speed an never locks, this worked really well for most cases but we started running into weird crashes that took us deep into the seemingly simple GC code and exposed flaw in our "no locking" approach. It seems that our assumption that we can just mark all the static objects was f...

Read More

Don't Block The UI

Post Image

I've talked with many end users about their badly written apps grievances and I've come to the conclusion that it isn't a matter of native vs. cross platform or even HTML. Its a frustration issue, driven by unintuitive apps (hidden gestures etc.) and slow performance. The slow performance bit is the most misunderstood, there is a "feeling" of slug...

Read More
Post Image

CallSerially The EDT & InvokeAndBlock (Part 2) 

The last time we talked about the EDT we covered some of the basic ideas, such as call serially etc. We left out two major concepts that are somewhat more advanced. Invoke And Block When we write typical code in Java we like that code to be in sequence as such: doOperationA(); doOperationB(); doOperationC(); This works well normally but on the E...

Read More

Side Swipe

Post Image

Chen's been busy with some customers on a feature that is often requested: mailbox like swipes. This effectively allows you to swipe a component to the side in order to reveal capabilities underneath e.g. edit, delete etc. Using this capability is really trivial just use something like a a MultiButton and place it in a SwipeableContainer with the...

Read More

Admob Interstitial Ads & Supertabs

Post Image

Ram (the developer of yhomework), wanted to improve his ad revenue on Android/iOS thru interstitial (full screen) ads and integrated those using native interfaces. Kindly enough he contributed these changes back and Chen packaged this as a cn1lib which you can now easily use to add support for full screen ads to your Android/iOS apps. On a differ...

Read More

Mighty Morphing Components

Post Image

One of the nice effects in the Android material design is the morphing effect where an element from the previous form (activity) animates to become a different component on a new activity. We've had a morph effect in the Container class since the original beta of Codename One but it didn't work as a transition between forms and didn't allow for mul...

Read More