Post Image

Autosizing, Add All & iOS Redirects

One of the common requests we received over the years is a way to let text "fit" into the allocated space so the font will match almost exactly the width available. In some designs this is very important but it's also very tricky. Measuring the width of a String is a surprisingly expensive operation on some OS's. Unfortunately, there is no other way other than trial & error to find the "best size".

Read More
Post Image

Block Copy/Paste & Faster Performance on iOS

I discussed both of these last week but we've made some progress that warrants a dedicated post. We added a new feature that allows you to block copy & paste on a text component either globally or on a case by case basis. This is helpful for highly sensitive applications.

Read More
Post Image

TIP: Use Android Gradle Dependencies in Native Code

Integrating a native OS library isn't hard but it sometimes requires some juggling. Most instructions target developers working with xcode or Android Studio & you need to twist your head around them. In Android the steps for integration in most modern libraries include a gradle dependency.

Read More
Post Image

Questions of the Week 41

We are releasing a small Eclipse update today, it's small because it isn't a full release that includes the latest features/libraries but rather a minor bug fix to the previous release which was missing the UWP build target. One of the biggest changes this week is the fix for the build performance issue mentioned below. It might also speed up general app performance for some use cases!

Read More
Post Image

Intercom Support

We use intercom.io for our website support system you can see it as the chat button on the bottom right of the page. The true value of this tool is in it's ability to deliver a unified interface everywhere, normally this stretches into native mobile apps as well. As a result we decided to port the native intercom device API to Codename One so it will be easy to deploy everywhere.

Read More
Post Image

Disable Screenshot, Copy & Paste

Continuing our security trend from the past month we have a couple of new features for Android security that allow us to block the user from taking a screenshot or copying & pasting data from fields. Notice that these features might fail on jailbroken devices so you might want to check for jailbreak/rooting first.

Read More
Post Image

Strong Android Certificates

When Android launched RSA1024 with SHA1 was considered strong enough for the foreseeable future, this hasn't changed completely but the recommendation today is to use stronger cyphers for signing & encrypting as those can be compromised.

Read More
Post Image

TIP: Use Tethering to Simulate Slow Network Connections

I recently had to debug some code on Android Studio and was reminded how awful that IDE really is. IntelliJ is a pretty good IDE but Android Studio is remarkably slow even for trivial projects... One of the things that make it slow (besides RAM usage) is the approach of downloading everything it needs dynamically.

Read More
Post Image

Questions of the Week 40

Today we have the first weekly release since the 3.6 release and as such it is choke full of changes which is natural given that we skipped a release and had a lot of code pending to "post release". So please be vigilant especially if you use peer components and let us know about potential regressions ASAP.

Read More
Post Image

Z-Order Peers in iOS & JavaScript

Just last week I mentioned the effort we were taking to bring the z-ordered peer components into other platforms and I'm pretty happy to report that tomorrows update should include support for iOS & the JavaScript ports for z-ordering.

Read More