Post Image

TIP: Select Table Row

Before we go into the tip I'd like to start with an apology to all the people I didn't get back to. Earlier today I sent an email asking for help with the upcoming Codename One bootcamp. The anticipation and resulting email flood took me totally off-guard as I expected a couple of dozen responses in the best case scenario and got much more...
I started answering as fast as I could and getting back to people I already answered in the back and forth but quickly this became untenable and I'm seeing my backlog pile growing. Chen and others around here tried to help but I prefer to do this personally as I'd like the feedback to sink into my brain not as an afterthought as it is very valuable!

Read More
Post Image

Questions of the Week 44

This weeks release adds support for JavaScript push but I'd recommend you don't use it in production yet... The main issue is that we might change the way JavaScript push keys are generated so it might be better to put this on hold or only experiment with this for now. Regardless it's a pretty big change to the push server so we have the old version standing by and might revert it if things get hairy.

Read More
Post Image

Security Section

We've had a lot of security related posts in the past few months as we refined many edge cases with some customers. These posts are difficult to comb thru as they are all over the place and it's hard to get a glance of "what's available".

Read More
Post Image

Push on JavaScript

Up until now push notification in Codename One only worked for Android & iOS devices. This is about to change this weekend when the JavaScript port should (almost) seamlessly start working with push!
This is pretty cool as push to the web is a pain with every browser taking a somewhat different route but with Codename One this will "mostly" work.

Read More
Post Image

TIP: Lightweight Rich Text View

A very common request is support for rich text in Codename One, this is hard to do in a generic/performant cross platform way but can be done as I explained in my answer here. This is pretty common though so it might be worth it doing this in a generic way.

Read More
Post Image

Questions of the Week 43

Surprisingly the big VM update we had last week didn't trigger any major regressions but we did break some versioned build behavior with the string obfuscation feature. Todays update is far more tame and should mostly include minor bug fixes and not to many new/disruptive features.

Read More
Post Image

ToastBar Actions & URLImage Caching

I wrote on the Friday post about a few cool pull requests from Diamond but I didn't provide a usage example for that API. Probably the best usage example is gmail style undo. If you are not a gmail user then the gmail app essentially never prompts for confirmation!

Read More
Post Image

Obfuscated Constants

One of the first things a hacker will do when compromising an app is look at it. E.g. if I want to exploit a bank's login UI I would look at the label next to the login and then search for it in the decompiled code. So if the UI has the String "enter user name and password" I can search for that.

Read More
Post Image

ParparVM Optimizations: Java on iOS now 2.8x Faster

TLDR: ParparVM is now up to 2.8x faster, and produces binaries that are 15%-20% smaller than before.

Read More