Post Image

TIP: Using Lombok and Other tools

A few weeks back maaartinus asked on stack overflow whether we can get lombok working with Codename One. After a short back and forth it seems that this was as easy as I'd hoped and he was able to get it working without a change.

Read More
Post Image

Tutorial - Desktop and JavaScript Ports

Codename One has ports for Mac, Windows & even for the browser. These are often confused and the introduction of the UWP port which also includes some overlap only made matters worse. Each one of these ports covers a segment that the other ports don't.

Read More
Post Image

Security, Map Tutorial and ComScore

I've added two modules recently to the deep dive course in the academy. These are a part of a trends together with the SMS activation posts I've done over the past couple of weeks. These are all preparations for the upcoming Uber demo that will launch before the end of the year.

Read More
Post Image

TIP: Activation UI and the Builder Pattern

I wrote two posts about the SMS activation process. In the first I discussed using the Twilio API via REST and in the second I discussed the native interfaces for SMS interception we can use in Android. Now it's time to put this all together and create a single API that's fluid. It should include the full UI process but be flexible enough to let you design your own experience.

Read More
Post Image

Tutorial - Offline Build

Offline build is a pretty complex topic which is why we opted for the online build process in Codename One. It allows for simple install/build and doesn't require a Mac. However, if you work for a bank or a government agency using a cloud solution is sometimes an insurmountable roadblock. That's why we introduced the offline build option to replace our old private cloud option.

Read More
Post Image

Always on Top and Style Parser

It's been a busy week with 3.7.3 released and a lot of new things. Diamond made several PR's over the past couple of weeks but one interesting PR is an "always on top" feature for the simulator which is exactly what it sounds...

Read More
Post Image

TIP: Intercept Incoming SMS on Android

Last week I talked about using SMS to activate your application which is a pretty powerful way to verify a user account. I left a couple of things out though. One of those things is the ability to grab the incoming SMS automatically. This is only possible on Android but it's pretty cool for the users as it saves on the pain of typing the activation text.

Read More
Post Image

Tutorial - Crash Protection

Continuing the trend I revisited the old crash protection video in the "how do I" section and updated it with current information and details. The old video still featured an old flag that should be avoided...
The new video is relatively short and simple as the feature isn't very complex, I hope to produce several more of these and bolster the video section further.

Read More
Post Image

Pixel Perfect - On Top Menu

I already have half a post on text components but I've put that on hold for now as I've been working on the on-top side menu to supersede the existing side menu bar implementation. I've made some fixes for it over the week, I wanted to make it the default for Codename One apps but it still isn't "perfect". We will make it the default within the next couple of weeks so please test it after this weeks update and let us know ASAP if you spot any issues!

Read More
Post Image

TIP: Send Device Activation SMS via Twilio

A very common question we get from developers is "how do I get the devices phone number". The answer is "you can't really and you shouldn't". To clarify, this is possible on Android but would require a scary set of permissions. It's blocked on iOS completely though so you'd need a different solution anyway...
If you look at apps like Uber, whatsapp etc. they all use SMS activation. They just ask you to type your number and activate your phone via SMS. Usually this SMS is sent from the server side but for simplicity lets discuss how this can be done entirely from your app.

Read More