Fork us on GitHub

Improved Background Behavior

And other minor changes/enhancements
Post Image

Improved Background Behavior

A couple of years ago at Google IO one of the prominent speakers turned to the audience and asked them: "Raise your hands if you understand the activity lifecycle". He then proceeded to call them "liars", claiming that after all his years at Google he still doesn’t get it properly…​

As a guy who worked on VM’s and understands some of the nuance I totally get his point. Lifecycle is hard. On Android it seems the developers took a difficult subject and made it even harder. With that in mind our implementation of background behavior on Android was lacking in some regards and Steve did a major overhaul of the implementation. Like all overhauls this could trigger some regressions so please keep your eyes open for such cases.

This change should be seamless and improve the applications robustness if you use background features.

Material Icons Everywhere

This went in a while back, we now use material icons in the MediaPlayer class by default for play/pause/forward & back.

We will also default to using material icons to represent tree folders/nodes in the next update to make it better looking and consistent by default.

We hope to use material icons by default on all UI elements. Getting to the older pieces of code is sometimes challenging as we don’t always notice them. If you can think of a component that can use a material icon makeover sound off in the comments.

Share this Post:

Posted by Shai Almog

Shai is the co-founder of Codename One. He's been a professional programmer for over 25 years. During that time he has worked with dozens of companies including Sun Microsystems.
For more follow Shai on Twitter & github.