New Graphics Pipeline

Post Image

Finally the new graphics pipeline is starting to trickle into the JavaSE port and the iOS port & once we iron those two out it should make its way into the Android port. With this in place we are finally at a point of functionality similar to JavaFX but without the overhead and performance implications that FX carries with it. The new pipeline in...

Read More

Navigate & Faster Builds

Post Image

One of the things we've been missing is a simple "navigate" feature that allows you to launch the devices native navigation software with a fixed destination. This was relatively simple to hack together using Display.execute but that's not the same as an official API. Chen just added two methods to Display that should really help in this process: i...

Read More
Post Image

Webservice Wizard

Simplified webservice access has long been on our todo list and we now finally have a tool that significantly simplifies server communications in Codename One to a method call level. We just posted a How Do I? video for this feature and will launch it with the plugin update next week. The feature is remarkably simple in concept, you define a set of...

Read More

Native iOS Code Callbacks

Post Image

Writing native code in Codename One is pretty simple, however one piece is relatively vague and that is the ability to call back from native code into the Java code. The reason we left this relatively vague is due to the complexity involved in exposing/documenting this across multiple OS's/languages so we chose to document this on a case by case ba...

Read More

VM Updates & Webservices

Post Image

We are making good progress on our new iOS VM and are starting to test a much wider range of apps. The VM is still experimental however many features that didn't work such as native interfaces, build flags etc. should now function as expected and perform well. Build times are still longer than Android build times and this can be attributed in a la...

Read More

Facebook Publish & Android Localization

Post Image

The Facebook native SDK for iOS and Android is difficult. It layers a great deal of complex permissions and concepts that seem obvious for engineers in Facebook but not so obvious for the casual observer. In the past Facebook allowed you to just request a write permission and you would receive such a permission, however recent SDK's force you to re...

Read More

Try The New iOS VM

Post Image

We just updated the build servers with the latest version of the Codename One iOS VM. This is still a work in progress and there is no guarantee your application will work. However, you can start playing with this right now and you might enjoy some of the benefits including proper stack traces, faster builds, smaller code size & faster performance....

Read More

Badges

Post Image

iOS allows us to send a push notification to trigger a numeric badge on the application icon, this is something you could do with Codename One for quite some time although it was mostly undocumented. You could send a push notification with the type 100 and the number for the badge and that number would appear on the icon, when you launch the app th...

Read More

Changes & Stacks

Post Image

One of the great features we've added to the new iOS VM is the ability to get proper stack traces without a performance penalty. This is actually pretty easy to implement in a performant way, every entry to a method just registers an integer number representing the method name and class name and every time we reach a line number in the source file ...

Read More

Beating The ARC

Post Image

For the uninitiated, ARC is Apple's term for Automatic Reference Counting. Objective-C uses a reference counting scenario to collect objects which is pretty painful to work with. Personally I preferred C/C++'s manual delete/free to the Objective-C semantics. But a couple of years ago Apple introduced ARC in which the compiler implicitly inserts the...

Read More